How To Check If Any Radio Button In A Group Is Checked Using jQuery
erics, Posted May 9th, 2012 at 9:03:51am
1 2 3 4 5 6 7 8 9 |
if ( ! jQuery('input[name=yourRadioGroup]').is(':checked') ) return false; ~OR~ if (! jQuery('input[name=yourRadioGroup]:checked').val()) { alert('Please make a selection...'); } else { alert('Thank you for making a selection!'); } |
Leave Your Comment
All fields marked with "*" are required.