How to prevent form submission by pressing entering key?

Stop form submission by pressing enter key.
this code will prevent form posting by pressing enter key or save time accidental form submission.


All form element and your code here.
Share

Leave a Reply

Your email address will not be published. Required fields are marked *