Jump to content

js code displayed on my page only in.....


justAnoob

Recommended Posts

Here is a part of it. My homepage has the exact same js validation script, and my homepage displays fine on Safari and Chrome, but when I go to another page on my site(with the same js) it displays my code.

 

<script type="text/javascript"/>
function validate(form1)
    {
    var valid = true;

    if (!form1.item_name.value)
    {
        document.getElementById('item_name_error').innerHTML = '*';
        valid = false;
    }
    else
    {
        document.getElementById('item_name_error').innerHTML = '';
    }
return valid;
}
</script>

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.