Monday, October 20, 2014

How to identify key press event using jquery

Posted by Gnani Palepu  |  No comments


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

 Sometimes, we need to validate the input value on a textbox. For example, for “First Name” we might need to avoid numeric values. So, we need to identify which key is pressed and then perform the action accordingly.  
 <!– jQuery: Which key is Pressed. –>  
 $(‘#txtFirstName’).keypress(function(event){  
    alert(event.keyCode);  
  });  
 <!– HTML: Which key is Pressed. –>  
 <asp:TextBox ID=”txtFirstName” runat=”server”></asp:TextBox>  

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


5:29 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