I have a simple script runs correctly on my computer:
function checkSel(){
if(document.form1.select1.value=='selected')
{
document.form1.select2.disabled = true;
}
else
{
document.form1.select2.disabled = false;
}
}
</script>
...
<form name="form1" method="post" action="">
<select name="select1" onChange="javascript:checkSel()">
<option value="1">xzdas</option><option value="selected">xzdas</option><option value="2">xzdas</option>
</select>
<select name="select2">
<option value="1">aaa</option>
</select>
</form>
but it is not working on the remote server...
onChange event gives "undefined" error.
function checkSel(){
if(document.form1.select1.value=='selected')
{
document.form1.select2.disabled = true;
}
else
{
document.form1.select2.disabled = false;
}
}
</script>
...
<form name="form1" method="post" action="">
<select name="select1" onChange="javascript:checkSel()">
<option value="1">xzdas</option><option value="selected">xzdas</option><option value="2">xzdas</option>
</select>
<select name="select2">
<option value="1">aaa</option>
</select>
</form>
but it is not working on the remote server...
onChange event gives "undefined" error.