Monday, October 20, 2014

jquery textbox number validation

Posted by Gnani Palepu  |  No comments


 if you want more related search please click here  
 please help to other  
 http://scriptquery.blogspot.in/  

 Limiting MaxLength for TextArea:  
 ------------------------------------  
 Lastly, it usual to put a textarea on a form and validate maximum number of characters on it.  
 <!– jQuery: Limiting MaLength for TextArea –>  
   var MaxLength = 500;  
     $(‘#txtDescription’).keypress(function(e)  
     {  
      if ($(this).val().length >= MaxLength) {  
      e.preventDefault();}  
     });  
 <!– HTML: Limiting MaLength for TextArea–>  
 <asp:TextBox ID=”txtDescription” runat=”server”   
              TextMode=”MultiLine” Columns=”50? Rows=”5?></asp:TextBox>  

 if you want more related search please click here  
 please help to other  
 http://scriptquery.blogspot.in/  


5:14 AM Share:

0 comments:

Get updates in your email box
Complete the form below, and we'll send you the best coupons.

Deliver via FeedBurner
Proudly Powered by Blogger.
back to top