You must Sign In to post a response.
  • Category: ASP.NET

    How to validate without Post back

    hi
    Experts

    Note: ( No Need Jquery,Javascript,Server side c# Code , Validation control)

    How to validate email id on keypress event in HTML5 only

    I saw this url

    "wufoo.com/html5/types/1-email.html"

    but here when I enter the email id after i press submit button

    now working email validation . But I need is without submit button

    I need validation in email id how will do this

    I need exact this

    4 Answers

    "stackoverflow.com/questions/19605773/html5-email-validation"



    Note: ( No Need Jquery,Javascript,Server side c# Code , Validation control)
  • #762844
    Hello Kumar,

    Refer the below code :

    <html>
    <head> <title>Email Validation in HTML5</title> </head>
    <body>
    <form action="" method="post">
    <div>
    <label for="email">Email (required):</label>
    <input type="email" id="email" pattern="^[a-z0-9._%+-]+@[a-z0-9.-]+\.[a-z]{2,4}$" name="email" value="" required> e.g.nirav@gmail.com
    </div>
    </form>
    </body>
    </html>


    See the attached image. It's an outpput i have got using above code.


    Hope this is what you are looking for.

    Regards,
    Nirav Lalan
    DNS Gold Member
    "Failure is the path of least persistence"

    Delete Attachment


Sign In to post your comments