tutorial 4: converting JavaScript to jQuery--example
watch it on YouTube
Notes
- use a dollar sign--$--at the beginning of a line of code to use jQuery
- use css-format selectors to identify elements on the page:
- . for a custom class
- # for an id
- no punctuation needed for an html tag: just list the tag to apply the JS code to all
instances of that element on the page