Menu
Hi
I am trying to get the (selected/current) value of a select box on an ASP form after the page is being loaded, ie in the startup script.
var RMCat = document.getElementById(“x_RawMat_Category”);
var RMCatValue = RMCat.options[RMCat.selectedIndex].value;
However, I got a blank.
alert(“RMCatValue =” + RMCatValue); gives me ‘RMCatValue =’
Any idea how I can get its value?
Thank you.