Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i prevent form from being submitted on enter #8

Open
developeranirudhprabhu opened this issue Aug 24, 2015 · 2 comments
Open

Comments

@developeranirudhprabhu
Copy link

I want to prevent form submission when i press enter in a specific field on the form. How do i access event object in the before function of this plugin?

@developeranirudhprabhu
Copy link
Author

Nope this doesnt fix the issue. Form still submits

--
Anirudh Prabhu

Portfolio: www.behance.net/anirudh
Blog: http://anirudhprabhu.blogspot.com/
LinkedIn: http://www.linkedin.com/in/anirudhprabhu
Site: http://anirudhprabhu.branded.me/

Design - Develop - Train

Date: Mon, 24 Aug 2015 00:11:54 -0700
From: [email protected]
To: [email protected]
CC: [email protected]
Subject: Re: [jQuery-Ajax-File-Upload] How can i prevent form from being submitted on enter (#8)

$(document).on('formselector','submit',function(){
return false;
});


Reply to this email directly or view it on GitHub.

@emmgfx
Copy link

emmgfx commented Aug 24, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants