I would like to check the first radio button of each group. But there are some radio button that are disabled, so the script should ignore them and go to next non-disabled button.
I wrote something like this but it doesn't work:
$(document).ready(function(){ if ($("input['radio']).is(':disabled')) { $(this).attr('checked', false ); } else { $(this).attr('checked', true ); } });
Thanks a lot
input:radio
. – Ulyssesumayyad