Wednesday, April 9, 2014

Mobile number validation in HTML5

HTML5 is very easy to validate input fields without javascript and jQuery.No need external library files to validate fields.

In this post iw ill expalin how to validate phone number using HTML5.

I have used patterns to validate phone number in below example.



Demo:
tel - Input type for Phone
required - is used to validate input field.

No comments:

Post a Comment