I have two radio buttons on my MVC form that I use to hide or show a row in a table.
It works fine in firefox, but not IE. It seems that in IE the JQuery function is only being fired when i select the first radio button. i have added extra radio buttons to confirm that it only fires on the first.
To render my buttons: <%= Html.RadioButton("Frequency", "Daily") %> Daily
and <%= Html.RadioButton("Frequency", "Weekly")%> Weekly
My function is:
$('table#ScheduleTable input#Frequency').addClass("FrequencyOption");
$('.FrequencyOption').change(function() {
if ($(this).attr('checked') == true & $(this).val() == "Daily") {
$('.recurEveryBox').children().show();
$('.weekDayOption').children().hide();
};
if ($(this).attr('checked') == true & $(this).val() == "Weekly") {
$('.recurEveryBox').children().show();
$('.weekDayOption').children().show();
}
});