Jump to content

Works locally but not on the server


bdrever

Recommended Posts

Here's a snippet of code from the HTML page:The form is called contractinfo and it has a bunch of different fields. There is one named 'model' which is referenced in the JS code..

<input name="otherPhone" id="otherPhone" type="text"  disabled="yes" style="font-family: Tahoma; font-size: 11px;">

Here's the JS code. It works locally but when I upload to my webhost it doesn't work. Any ideas?

function showOther(){	if (document.contractinfo.model.value != "Other")	{		document.getElementById("otherPhone").disabled=true		document.getElementById("test").style.color="white"	}	else	{		document.getElementById("otherPhone").disabled=false		document.getElementById("test").style.color="red"	}}

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...