Hello, I have a problem with JavaScript. I can use document.getElementById('bleh') to get an element I can also use document.getElementById('bleh').value to get the value. But what if I want the tag to contain the attribute name as well. My question is, how can I get the value of the name attribute using document.getElementById.
You can get the SELECT in various ways. From that you can get at its OPTIONS. It should then be possible to call getAttribute("name") on an individual OPTION.