javascript - How to press a button with Enter Key -


how bind click(from button1's click event) event in textbox when pressed enter key

$('#idoftextbox').keypress(function (e) {     var code = e.keycode || e.which;     if (code === 13) {         //enter has been pressed     }; }); 

Comments