jQuery odd Selector

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

jQuery odd Selector

jQuery odd selector is used to select only the odd HTMLelements on the webpage. Indexes are zero based


See the below jquery odd selector example, it will select all the odd tr elements (1, 3, 5) and apply background-color:red color to the above HTML code

jquery odd 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