My html code for textarea is as below.
CopyPS: 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"