if ($('input[name=whatsmyname]:checked').length) // something got checked
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.
Want to return the favor?
Share your jQuery code snippets:
- Get some recognition & link back to your site.