I have to develop on a windows machine (wamp), then upload to a Linux machine, on one page I have a javascript to handle an onchange event. In Windows, it works fine - but once I upload to a Linux machine, I get an error at the if statement
Could anyone give me an idea about what is wrong/
Code: Select all
<script language="Javascript" type="text/javascript">
function ReactToChange(){
if (document.getElementById("sales_status").value == "sold" && document.getElementById("istatus").value == "available" )
{ document.getElementById("soldselect").checked = true }
else
{ document.getElementById("soldselect").checked = false }
}
</script>