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 b
A little upgrade for 2020. The official documentation suggests the use of "first()" and "prop()"
$("input[name='groupName'][disabled=false]").first().prop("checked", true);