Select Elements at Odd Indexes $(":odd")

$(":odd")

e.g. $("li:odd")

$(":odd") selects elements at odd indexes, e.g. 1,3,5,...etc within the matched set.

For example, $("li:odd") will find <li> at odd indexes within the matched set.
<ul>
<li>0</li>
<li>1</li>
<li>2</li>
</ul>
Example 2: $("div:odd") will find <div> at odd indexes within the matched set.
<div id='someID'>div-1</div> // index =0
<p>p-1</p>
<div class='someClass'>div-2</div>// index =1
<p>p-2</p>
<div>div-3</div> // index =2
<span>span-1</span>
Matched set is a set of elements matching selector. For example, in Example 2 matchted set is set of elements matching $("div") selector
<div id='someID'>div-1</div> //index = 0
<p>p-1</p>
<div class='someClass'>div-2</div> //index = 1
<p>p-2</p>
<div>div-3</div> //index = 2
<span>span-1</span>
jQuery selector filter $(":odd")