public marks

PUBLIC MARKS with tags button & js

19 May 2009 15:45

Dynamically Created Radio Buttons - Another IE Gotcha

by astrochoupe
As soon as I think I have it all worked out I bump into another oddity between Firefox and IE and handling the DOM. Specifically adding a radio button (or set of them) dynamically. My initial javascript went something like this: # var rdo = document.createElement('input'); # rdo.type = 'radio'; # rdo.id = 'someUniqueID'; # rdo.name = 'myRadio'; # rdo.value = 1; # # myDocumentsBody.appendChild(rdo); This almost worked perfectly. The input was added, it was a radio button, but it was totally unselectable. I could select it via javascript but the normal "click" event didn't cause the radio button to assume the "selected" state in IE? What gives?

PUBLIC TAGS related to tag button

adobe +   aim +   apple +   art +   avalon +   buttons +   cms +   creative +   css +   design +   echelon +   echeloncms +   firefox +   fireworks +   flash +   graphic +   graphics +   howto +   icon +   icons +   inspiration +   javascript +   leviathan +   logo +   mac +   macroXP +   mx +   neowin +   opera +   photoshop +   reference +   resources +   roundedcorners +   shuffle +   skin +   skins +   studio +   Suite +   theme +   thunderbird +   triton +   tutorial +   tutorials +   Valkyrie +   webdesign +   winamp +   windows +   wordpress +  

Active users

astrochoupe
last mark : 19/05/2009 15:52