Advertisement
Virajsinh

Enter Submit Form Disable jQuery

Nov 17th, 2021 (edited)
1,665
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.15 KB | None | 0 0
  1. // html use : <form onkeydown="return event.key != 'Enter';">
  2.  
  3. $(document).on("keydown", "form", function(event) {
  4.     return event.key != "Enter";
  5. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement