samedi 9 juillet 2016

Validation Checking for all Alphanumeric is not executing?How it will be execute the code is in body

Validation Checking for all Alphanumeric is not executing?How it will be execute the code is in comment

{

function validateForm() { var x = document.forms["myForm"]["fname"].value; if (x == "") { alert("Name must be filled out"); return false; } var numbers=/^[0-9]+$/; if(!x.match(numbers)) { Alert(“Only numerics are allowed”); return false; }

Name:

}

Aucun commentaire:

Enregistrer un commentaire