Hi,
I am trying to use document.getElementById to grab the currently selected OPTION within a SELECT list. Problem is, I don't really know what attribute to use for this - it isn't "value" like it would be for, say, grabbing what's in a text box.
Actually, the REAL problem is I don't have a good reference for looking this sort of thing up. If someone could point out a Website that does a good thorough job explaining the DOM and how to interact with it in JavaScript, I would appreciate it very much. I've found a lot of piecemeal info, but no sites that I can keep going back to when I don't know something.
Thanks!
I am trying to use document.getElementById to grab the currently selected OPTION within a SELECT list. Problem is, I don't really know what attribute to use for this - it isn't "value" like it would be for, say, grabbing what's in a text box.
Actually, the REAL problem is I don't have a good reference for looking this sort of thing up. If someone could point out a Website that does a good thorough job explaining the DOM and how to interact with it in JavaScript, I would appreciate it very much. I've found a lot of piecemeal info, but no sites that I can keep going back to when I don't know something.
Thanks!