document.getElementById problem in JS
Posted: Tue Feb 15, 2011 6:41 am
i have the code in JS:
how come the line catcher_id.value = 11; is not setting the value to 11????
i get that catcher_id = null????
pleas help
thanks
Code: Select all
if(drop_list.value == "zed-catcher/11")
{
input_box.disabled=false;
var catcher_id = document.getElementById('lpm_service_catcher_id');
catcher_id.value = 11;
}
else
input_box.disabled=true;
i get that catcher_id = null????
pleas help
thanks