N
nathaniel.k.lee
Is it not possible, in IE, to dynamically click a radio button? I'm
grabbing some values from a database and using them to populate radio
buttons on a page. I have alternate code for Firefox browsers using the
setAttribute() function.
Everything works as planned in Firefox but in IE, the buttons won't
populate and, what's worse, I can't even click on them after everything
loads. I see the slight shadow that indicates you're clicking on a
radio button, but the black dot doesn't appear inside any of the radio
buttons when I click on them.
:-(
obj4 = document.createElement("input");
obj4.name = "test";
obj4.type = "radio";
obj4.value = 1;
if (i == 1) { obj4.checked = true; obj4.click(); }
obj5 = document.createElement("input");
obj5.name = "test";
obj5.type = "radio";
obj5.value = 2;
if (i == 2) { obj5.checked = true; obj5.click(); }
obj6 = document.createElement("input");
obj6.name = "test";
obj6.type = "radio";
obj6.value = 3;
if (i == 3) { obj6.checked = true; obj6.click(); }
grabbing some values from a database and using them to populate radio
buttons on a page. I have alternate code for Firefox browsers using the
setAttribute() function.
Everything works as planned in Firefox but in IE, the buttons won't
populate and, what's worse, I can't even click on them after everything
loads. I see the slight shadow that indicates you're clicking on a
radio button, but the black dot doesn't appear inside any of the radio
buttons when I click on them.
:-(
obj4 = document.createElement("input");
obj4.name = "test";
obj4.type = "radio";
obj4.value = 1;
if (i == 1) { obj4.checked = true; obj4.click(); }
obj5 = document.createElement("input");
obj5.name = "test";
obj5.type = "radio";
obj5.value = 2;
if (i == 2) { obj5.checked = true; obj5.click(); }
obj6 = document.createElement("input");
obj6.name = "test";
obj6.type = "radio";
obj6.value = 3;
if (i == 3) { obj6.checked = true; obj6.click(); }