Textbox Max Length using JQuery | How to give Max Length to textbox field using JQuery or Javascript?

Textbox Max Length Setting

Using attr method we can give the maxlength property to the textbox. Please check below complete jquery example for more details. This is one of the good JQuery Interview Question.

<script type="text/javascript" 
<script type="text/javascript">
<input style="WIDTH: 275px" id="txtLengthValidation" name="realname" class="required" 
size="25" minlength="2" placeholder="First Name" >

Share this post :

Post a Comment

Please give your valuable feedback on this post. You can submit any ASP.NET article here. We will post that article in this website by your name.

Support : Ranga Rajesh Kumar
Copyright © 2012. ASP.NET Examples - All Rights Reserved
Site Designed by Ranga Rajesh Kumar