Pattern Attribute:
Pattern attribute is used for input field validation and used to provide a regular expression which is used to match the input fields value whether the value is according to the pattern specified or not.
When user enter a value in the input field and if the value entered is not as per the expected format, then a error is thrown and our form will not submit until user does not provide correct format value.
No comments:
Post a Comment