Last active
October 2, 2015 15:37
-
-
Save gerasimua/4945c311a5bd83ea89df to your computer and use it in GitHub Desktop.
Some example of custom message on HTML5 validation error
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input type="text" class="form-control input-lg verify-code-field" data-bind="value: verifyCode" | |
required pattern="\d{4}" oninvalid="setCustomValidity('Please type 4 digit code')" onchange="try{setCustomValidity('')}catch(e){}" | |
placeholder="Enter your 4 digit code to claim"/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment