HTML 5 Tutorials
Html5 What isIn the pattern attribute is used to validate input field through pattern. In the pattern is a regular expression. You can declare own requirement to input type field validation through regular expression. Pattern attributes will work input field types. Which input types are search, telephone, text, email and password.
In the above regular expression is a Canadian postal code validation. you enter postel code in the above form if postal code is worng message will display.
|
Tweet |
|
|