Last active
December 5, 2019 08:16
-
-
Save zplume/932a5d049a6792f66024 to your computer and use it in GitHub Desktop.
HTML 5 / Kendo UI client-side validation for a password field with basic complexity requirements
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
<!--ASP.NET--> | |
<asp:Textbox runat="server" ClientIdMode="Static" type="password" id="PasswordTextbox" name="PasswordTextbox" pattern="^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9]).{8,}$" validationmessage="Please enter a password which is at least 8 characters long and contains a lowercase character, an uppercase character and a number" required /> | |
<!--HTML--> | |
<input type="password" id="PasswordTextbox" name="PasswordTextbox" pattern="^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9]).{8,}$" validationmessage="Please enter a password which is at least 8 characters long and contains a lowercase character, an uppercase character and a number" required /> | |
<!--Kendo UI Validator: http://demos.telerik.com/kendo-ui/validator/index --> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
it's not working