Indian Mobile validation in HTML with Regular Expression

0
97
html

This example explains how to validate the Indian Mobile Number in html page with Pattern attribute in html form using regular expression.

<form action="action.php" method="post">
Mobile: <input type="text" name="Mobile" 
pattern="[6-9][0-9]{9}" required=""  title="Please enter valid mobile number." />
<input type="submit">
</form>

LEAVE A REPLY

Please enter your comment!
Please enter your name here