tutorial 2: jQuery selectors
watch it on YouTube
Notes
- jQuery uses CSS selectors
- Most advanced selectors can be used
- HTML element: "p"
- HTML id: "#id"
- CSS class: ".class"
Definitions
- selctor
-
an identifier that targets specific elements, properties, or other characteristics on a coded page.
Examples
- $("p").method1([param]);
- $("p:first-of-type").method1([param]);
- $("#id").method1([param]);
- $(".class").method1([param]);