Category - Regular Expressions
Results 1 - 5 of 57
07 Feb 2019 18 Feb 2019 0 Comments  567 Views
Here Mudassar Ahmed Khan has explained with an example, how to allow only AlphaNumeric (Letters or Numbers), Underscore in Username and it must have length of 3 to 10 characters using JavaScript.

When the Submit Button is clicked, the Username in the TextBox will be validated using JavaScript and Regular Expression (Regex) and if the Username is invalid, the error message will be displayed next to the TextBox using JavaScript.
01 Feb 2019 01 Feb 2019 0 Comments  846 Views
Here Mudassar Ahmed Khan has explained with an example, how to restrict user from entering Special Characters in TextBox using AngularJS.

This article will illustrate how to perform AlphaNumeric validation for TextBox i.e. allow only Alphabets and Numbers in TextBox using AngularJS.

The AlphaNumeric validation will be performed with the help of ngPatternRestrict module which uses Regular Expressions for restricting characters in TextBox in AngularJS.
01 Feb 2019 01 Feb 2019 0 Comments  658 Views
Here Mudassar Ahmed Khan has explained with an example, how to restrict user from entering Special Characters in TextBox using jQuery.

This article will illustrate how to perform AlphaNumeric validation for TextBox i.e. allow only Alphabets and Numbers in TextBox using jQuery.

When User types in the TextBox, the text in the TextBox will be validated using OnKeyPress event handler in jQuery and if the inputted character is not AlphaNumeric i.e. Alphabet or Number, the error message will be displayed next to the TextBox.
30 Jan 2019 30 Jan 2019 0 Comments  430 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform Alphabet validation i.e. allow only Letters (A-Z) using OnKeyPress event in jQuery.

When User types in the TextBox, the text in the TextBox will be validated using OnKeyPress event handler in jQuery and if the inputted character is not Alphabet i.e. Letters (A-Z), the error message will be displayed next to the TextBox.
30 Jan 2019 30 Jan 2019 0 Comments  429 Views
Here Mudassar Ahmed Khan has explained with an example, how to perform Alphabet validation i.e. allow only Letters (A-Z) using OnKeyPress event in JavaScript.

When User types in the TextBox, the text in the TextBox will be validated using OnKeyPress event handler in JavaScript and if the inputted character is not Alphabet i.e. Letters (A-Z), the error message will be displayed next to the TextBox.
Results 1 - 5 of 57