Skip to content

Commit 2510bdb

Browse files
SoldierKBscottgonzalez
authored andcommitted
Selecting Elements: Expand description of :checked selector
Closes jquerygh-401
1 parent 14aaf09 commit 2510bdb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

page/using-jquery-core/selecting-elements.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,13 @@ Much like the `:button` pseudo-selector, it's best to first select elements with
140140

141141
#### :checked
142142

143-
Not to be confused with *:checkbox*, `:checked` targets only the *checked* checkboxes as well as checked radio buttons:
143+
Not to be confused with *:checkbox*, `:checked` targets *checked* checkboxes, but keep in mind that this selector works also for *checked* radio buttons, and select elements (for select elements only, use the `:selected` selector):
144144

145145
```
146146
$( "form :checked" );
147147
```
148148

149-
The `:checked` pseudo-selector works when used with **checkboxes** and **radio buttons**.
149+
The `:checked` pseudo-selector works when used with **checkboxes**, **radio buttons** and **selects**.
150150

151151
#### :disabled
152152

0 commit comments

Comments
 (0)