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.
Snippet Viewed 6942 times.
Share your jQuery code snippets:
- Get some recognition & link back to your site.