I am trying to figure out why my page doesn’t fire the radio button change event.
Here’s the script I have for it, it’s supposed to show a div once the radio button is checked.
$("input[id$='radio1']").change(function () {
if ($("input[id$=radio1]").is(':checked')) {
$('#div1').removeClass('hidden');
}
});
what’s wrong with this code?
1 Answer