Could anyone tell me what could be the problem with using this line of code:
Code:
<script type="text/javascript">
var the_select1 = document.getElementById("type_socks");
var sock_selection1 = the_select1.options[the_select1.selectedIndex].value;
function someThing(){
something that references the select value...
}
</script>
The object is being called in the global scope and I keep getting 'null' and 'undefined' values out of error console and firebug...what could possibly be the issues here?
and Firebug as it steps through the code is giving me "" values for the select values...?...even though something is selected and the html looks like: <select><option value="something">...</option></select>..this is pretty frustrating...