Objectives
- Solve problems with jQuery
- Practice with common jQuery patterns
time | Description | |||
---|---|---|---|---|
1 | 5 min | 5 | TT | jQuery quick review |
2 | 5 min | 5 | TT | Menus and Slideshows |
3 | 20 min | 35 | Work | Challenges |
4 | 5 min | 40 | TT | JSON API Example |
5 | 10 min | 50 | Work | Challenges |
10 min | 60 | Break | ||
6 | 5 min | 65 | TT | Intro challenges |
7 | 40 min | 105 | Work | Challenges |
jQuery is a JS library that makes your work with JS easier and faster. Common tasks with jQuery:
- Select elements in the DOM
- jQuery allows selection of elements based on a wider range of criteria such as siblings and index
- Add and remove classes from elements
- This facilitates many other things
- Load JSON from web services
Example -
Challenges -
Challenges -
- Add text content to boxes
- Change the background color of boxes
Example -
Example 2 -
- $.get(path, {}, handler(data))
- $.post(path, {}, handler(data))
- hmtl()
- Display the Artist
- Display the price
- Add some styles
Use the ideas from the previous examples to recreate the pages below.