A repository of over 1000 quality jQuery plugins

jQuery :radio Selector

Learn all about the jQuery function :radio Selector.

$( ":radio" ) is equivalent to $( "[type=radio]" ). As with other pseudo-class selectors (those that begin with a ":") it is recommended to precede it with a tag name or some other selector; otherwise, the universal selector ("*") is implied. In other words, the bare $( ":radio" ) is equivalent to $( "*:radio" ), so $( "input:radio" ) should be used instead.

To select a set of associated radio buttons, you might use: $( "input[name=gender]:radio" )