Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("body input").keypress(function (e) {
- if ((e.which && e.which == 13) || (e.keyCode && e.keyCode == 13)) {
- $('#testbutton').click();
- //$('input[type=submit].default').click();
- return false;
- } else {
- return true;
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment