Skip to content

Commit 2f65dfd

Browse files
seize-the-davescottgonzalez
authored andcommitted
Fixed invalid selector for radio buttons.
1 parent f520497 commit 2f65dfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ To select a set of associated radio buttons use:
224224

225225
```
226226
// Selects all radio buttons with the name attribute of gender.
227-
$( "form input[name="gender"]:radio" );
227+
$( "form input[name='gender']:radio" );
228228
```
229229

230230
In order to get the best performance using `:radio`, first select elements with a standard jQuery selector, then use `.filter( ":radio" )`, or precede the pseudo-selector with a tag name or some other selector.

0 commit comments

Comments
 (0)