With googling I have found that IE does not support setAttribute and onClick, so I tried the alternative recommended below using lowercase onclick = a function, but nothing is being inserted into my radio button, just the name and type=radio. Anyone know how I might remedy this? Thanks so much.
Code:
var SizeRadio1 = document.createElement("input");
SizeRadio1.setAttribute("type","radio");
SizeRadio1.setAttribute("name","breedFinderChoice");
SizeRadio1.onclick = function () {changeDropDown(i,'size_id')};
var rec1 = document.createElement("div");
rec1.style.cssText = "color:#336;margin 4px 0px 2px 0px;";
rec1.appendChild(SizeRadio1);
.... rest of code to append some text to rec1
Last edited by cactusPhone; 07-24-2007 at 10:53 AM.
The radio button in IE does fire the event, but does not show as being selected when clicked. Do I need to write into the function an event to make the radio button selected?
Last edited by cactusPhone; 07-24-2007 at 12:54 PM.
Bookmarks