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

mask use on form causes instant redirect #10

Open
GoogleCodeExporter opened this issue Apr 18, 2015 · 0 comments
Open

mask use on form causes instant redirect #10

GoogleCodeExporter opened this issue Apr 18, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?

html:
<div id="updateBox">
<form action="#" id="exampleForm">
<input type="submit" />
</form>
</div>

JQuery (with the problem)
<script type="text/javascript">
$("#exampleForm").submit(function(){
$("#exampleForm").mask("Doing something..");
alert("you should see this too");
return false;
});
</script>

the problem here is, it doesnt even shows the alert, it just sends the form 
even though there is a return false, doing this without the mask plugin will 
result in a succes.
masking the Parent DIV doesnt works either.


What is the expected output? What do you see instead?
in the example above, an alert and not sending the form, instead it doesnt 
shows the alert and sends the form.


Original issue reported on code.google.com by [email protected] on 7 Jun 2011 at 11:54

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

No branches or pull requests

1 participant