jQuery Check to see if any radio button in a group is checked

Use the name attribute selector, combined with the checked selector to determine if any radio button in a group has been selected.
if ($('input[name=whatsmyname]:checked').length)
	// something got checked
Posted by
Want to return the favor?

Share your jQuery code snippets:

  • Get some recognition & link back to your site.
Submit | Browse

Most Recent jquery snippets

Most Viewed

The FitDesk Under Desk Elliptical