Sunday, July 1, 2012

How Do I Use jQuery Selectors?

The basic concept of jQuery is to “select some elements and do something with them”. Selecting can arguably be considered the power behind the jQuery Library. Without the ability to easily select elements from the DOM I don’t think jQuery would be the powerful tool for the DOM as it is today.

What makes jQuery so easy to select elements is its selector engine, Sizzle, and it’s easy syntax, which is based on the same syntax you would use to select elements in CSS by borrowing from CSS 1-3. jQuery also adds additional pseudo selectors to enable you to narrow your selection further. You can find out more about selectors by reviewing the complete reference Selector category on jQuery API site.


No comments:

Post a Comment