JQuery Notes

Filters are used for filtering html elements. They are attached to the element you want to filter and are defined by a colon, e.g :even.

To select multiple elements, put a comma between each selection criteria.

‘this’ is the element that fired the event.

‘is’ action –> takes selectors and checks to see if they match any of the selectors it was called on, e.g.
$(‘#test’).is(‘:visible’);
The above returns true if the element with ID test matches the :visible selector.

Progressive enhancement wrt Javascript

Attribute selectors
enclose the attribute in square brackets – e.g.: a[href=#] where href is the attribute and # is the value we’re looking for.