Hi there, I have the followign code segment in Javascript:
and this works just fine in IE. But when I run this exact same code in firefox, I am getting the error
Error: document.getElementById("game") has no properties
Wondering if anyone have come accross similar problems.
Code:
var game = document.getElementById("game").options[document.getElementById("game").selectedIndex].text;
and this works just fine in IE. But when I run this exact same code in firefox, I am getting the error
Error: document.getElementById("game") has no properties
Wondering if anyone have come accross similar problems.