Skip to content Skip to sidebar Skip to footer

Jquery Key Press Event On Textarea

My html code for textarea is as below.
Copy

PS: don't listen event in document.

Solution 2:

Try this one

$("#txtContent").on("keydown", function(e){
 if(e.which == 13){         
   $('#lnkSaveWSR').focus().click();
  returnfalse;
 }
});

$('#lnkSaveWSR').on("click",function(e){
 alert('a');
 });

Demo

Post a Comment for "Jquery Key Press Event On Textarea"