I can remove the checked attribute without difficulty, but I cannot set it.
$('#radio2').removeAttr("checked"); // this works
$("#radio1").attr("checked", true); // this doesn't
I've scoured these and other forums and tried every variation I've come across, but I just can't seem to change the state of my radio buttons.
I am looking for a way to change the status of the radio buttons as part of another .click() function; If I click on the radio buttons themselves, the visual state does change as it's supposed to, but it inspecting the code shows no change to the actual "checked" state. Can anyone offer some insight for a newbie?