Results 11 - 15 of 427
02 Jan 2019 02 Jan 2019 0 Comments  365 Views
Here Mudassar Ahmed Khan has explained with an example, how to build a TextBox Character Counter using JavaScript i.e. Count number of characters in TextBox using JavaScript.

This article will illustrate how to use the ASPSnippets MaxLength jQuery plugin for counting the number of characters in TextBox and also implement maximum length validation using JavaScript.
01 Jan 2019 01 Jan 2019 0 Comments  301 Views
Here Mudassar Ahmed Khan has explained with an example, how to change TextBox TextMode to Password using JavaScript.

The TextMode of a TextBox is decided by its Type attribute i.e. text or password.

HTML does not allow the Type attribute to be modified with JavaScript at runtime and hence the same can be achieved by creating a dynamic TextBox next to the Password TextBox and hiding the Password TextBox.
01 Jan 2019 01 Jan 2019 0 Comments  321 Views
Here Mudassar Ahmed Khan has explained with an example, how to implement maximum Length validation for TextBox using JavaScript and jQuery.

HTML TextBox does have MaxLength property but it does not provide features such as Character Count i.e. displaying the user number of character left.

Thus using the ASPSnippets MaxLength jQuery plugin, one can enforce character limit validation and optionally display the Character Count.
01 Jan 2019 01 Jan 2019 0 Comments  511 Views
Here Mudassar Ahmed Khan has explained with an example, how to dynamically add (insert) Items (Options) to ASP.Net DropDownList on Button Click using JavaScript.

The Items (Options) Text and Value parts will be dynamically fetched from TextBoxes and then the Items (Options) will be added to ASP.Net DropDownList using plain JavaScript.
28 Dec 2018 28 Dec 2018 0 Comments  418 Views
Here Mudassar Ahmed Khan has explained with an example, how to check if String contains only Alphabets (Letters) and Numbers (Digits) using JavaScript.

This article will illustrate how to use Regular Expression which allows Alphabets (Letters) and Numbers (Digits) i.e. AlphaNumeric characters to filter out all unwanted characters using JavaScript.
Results 11 - 15 of 427