I'd like to know for a specific radio button group if a radio button is selected or not with jQuery.
Thanks
if( $('input[name=groupName]').is(':checked') ){
//do something
}
or my original answer before Paulo woke me up
if( $('input[name=groupName]:radio:checked').length ){
//do something
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With