/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$('#input_text').keyup(function(e) { //alert(e.keyCode); if(e.keyCode == 13) { alert('Enter key was pressed.'); } });