jQuery :checked Selector (original) (raw)
Last Updated : 11 Jul, 2025
The **jQuery ****:checked selector** is used to select all checked checkboxes, radio buttons, and options of select elements.
**Note: To retrieve only the selected options of select elements, use:selected selector.
**Syntax:
$(":checked")
The below examples illustrate the ****: checked selector** in jQuery:
**Example 1: This example applies CSS to all checked elements(in this example, checkboxes).
HTML `
jQuery | :checked SelectorjQuery | :checked Selector
GeeksForGeeks_1GeeksForGeeks_2
GeeksForGeeks_3
`
**Output:
**Example 2: This example uses checked selector on radio buttons.
HTML `
jQuery | :checked SelectorjQuery | :checked Selector
GeeksForGeeks_1GeeksForGeeks_2
GeeksForGeeks_3
`
**Output: 