To disable enter key on a form in jQuery you can use the following snippet.
Sample jQuery
$("#form").keypress(function(event) { if (event.which == 13) { return false; } });
All the Code Snippets and Samples you need
To disable enter key on a form in jQuery you can use the following snippet.
$("#form").keypress(function(event) { if (event.which == 13) { return false; } });
You must be logged in to post a comment.
RT @CodeSnippetsNET: How to disable enter key on a form in jQuery http://t.co/2UzABa6mgh #js #jquery #php #css
RT @CodeSnippetsNET: How to disable enter key on a form in jQuery http://t.co/2UzABa6mgh #js #jquery #php #css