Is there a way to disable radio buttons with a specific class using JavaScript? I attempted the following code:
if( $("input[type=radio]").hasClass("class-full") ){
$(this).attr('disabled', true);
}
However, it does not seem to be effectively disabling the radio button with class class-full
. Can someone provide guidance on the correct approach?