hello, can u plz help me?? I can't run the javascript on Mozilla nad IE(can run on Chrome) I don't know why. I think my javascript has some problem. Here is my code .....
<script>
function check()
{
if(document.getElementById("name").value==""||document.getElementById("address").value==""||document.getElementById("phone").value==""||document.getElementById("email").value==""||document.getElementById("username").value==""||document.getElementById("passwd").value==""||document.getElementById("passwd2").value==""){
alert("You need to complete the form");
}
else continue;
}
function check_no()
{
var no=document.getElementById("phone").value;
if(isNaN(no)==false){alert("right");}
else {alert("Only number");}
}
function check_email(email,alerttxt)
{
with (email)
{
apos=value.indexOf("@");
dotpos=value.lastIndexOf(".com");
dotpos2=value.lastIndexOf(".net");
if (apos>1)
{
if(dotpos-apos>1||dotpos2-apos>1){document.getElementById('email_error').style.visibility="hidden"; return true;}
else{document.getElementById('email_error').style.visibility="visible";}
}
else {document.getElementById('email_error').style.visibility="visible";}
}
}
function check_pass()
{
var first=document.getElementById("passwd").value;
var second=document.getElementById("passwd2").value;
if(first==second)continue;
else {alert("Passwords do not match");document.getElementById("passwd").value="";document.getElementById("passwd2").value="";document.getElementById("passwd").select();}
}
</script>
Thz u for ur helps.