bdrever Posted May 31, 2007 Share Posted May 31, 2007 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 More sharing options...
justsomeguy Posted June 1, 2007 Share Posted June 1, 2007 Which host do you use? Check the source code of the page online and make sure that the host is not screwing up your Javascript code. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.