Skip to content Skip to sidebar Skip to footer

Cheking If Form Of Submited Email Is Correct

I've created this script to check form of email user will enter into textbox function checkEmail() { var mail = document.getElementById('mail'); var filter = /^([a-zA-Z0-9_\.\

Solution 1:

Instead of doing it in the onclick attribute of the submit button, try doing it in the onsubmit attribute of the form:

<form action="dogodki.php" method="post" onsubmit="return checkEmail()">

Post a Comment for "Cheking If Form Of Submited Email Is Correct"