- Do not make any assumptions
- Find your hooks and relationships
- Leave traversing to the experts
- Understand browsers and users
- Understand Events
- Play well with others
- Work for the next developer
A jQuery selector function, written jQuery(selector) or $(selector), returns an object containing an array of DOM elements that match the selector. So, for example, the selector function $("table tr:nth-child(even)") returns alternate table rows.