I\'m trying to do a function if enter is pressed while on specific input.
What I\'m I doing wrong?
$(document).keyup(function (e) { if ($(\".inpu
Try this to detect the Enter key pressed in a textbox.
Enter
$(function(){ $(".input1").keyup(function (e) { if (e.which == 13) { // Enter key pressed } }); });