jQuery even Selector

Last Updated Jul 21, 2015, 12:00:06 PM





jQuery even Selector

jQuery even selector is used to select only the even HTMLelements on the webpage. Indexs are zero based index

Syntax > Example HTML

See the below jquery even selector example, it will select all the even tr elements (0, 2, 4) and apply background-color:red color to the above HTML code


jQuery
Output
jquery even selector Try It Now

Other Advanced jQuery Selectors you might want to learn

jQuery Complete Selectors Reference

jQuery Selectors

jQuery Basic Selectors

jQuery Child Selectors

jQuery Content Filter Selectors



Sources and Credits

The content and methods in the tutorial has been referred and updated with jQuery API and The jQuery Foundation

Last Updated Jul 21, 2015, 12:00:06 PM