Skip to main content
Source Link
Mathew
  • 1.4k
  • 7
  • 13

Chrome is not able to work when I click Enter button

If enter key is pressed and then search button clicked event is called. My chrome doesn't work . IE is OK . How do I fix ? Thanks in advance

$('#txtSearch').keypress(function(e){
  if(e.keyCode==13)
  $('#btnSearch').click();
});

});