jQuery :odd Selector (original) (raw)

Last Updated : 28 Jul, 2025

**jQueryis an open-source JavaScript library that simplifies the interactions between an HTML/CSS document, or more precisely the Document Object Model (DOM), and JavaScript. Elaborating the terms, it simplifies HTML document traversing and manipulation, browser event handling, DOM animations, Ajax interactions, and cross-browser JavaScript development.

The jQuery :odd selector is used to select an odd number index from the elements. The number of indexes starts from 0. The working is the same as ****:even** selectors but for odd numbers.

**Syntax:

$(":odd")

**Example 1: In this example, we are using the above-explained selector.

HTML `

GeeksForGeeks

Company Country
reliance India
flipkart India
walmart American
Ernst Handle Austria
Island Trading UK

`

**Output:

**Example 2: In this example, we are using the above-explained selector.

HTML `

Welcome To GeeksForGeeks

State Capital
uttar pradesh lucknow
punjab chandigarh
haryana candigarh

`

**Output:

**Supported Browsers: