so for ages now we've been calling a radio button using the non-DOM method of document.formname.radiobuttonname. But yay! Recently Jason & I figured out the DOM method for doing it: document.getElementsByName("radiobuttonname")[index]
Remember these are 0 indexed.
So feel free to change your javascript to it's entirely using the DOM way to reference page elements. Exciting stuff!
Thursday, April 30, 2009
Subscribe to:
Posts (Atom)