Menu
Could anyone tell me what could be the problem with using this line of code:
[CODE]
<script type=”text/javascript”>
[COLOR=”Blue”]var the_select1 = document.getElementById(“type_socks”);
var sock_selection1 = the_select1.options[the_select1.selectedIndex].value;[/COLOR]
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?