vparupati / jquery-loadmask

Automatically exported from code.google.com/p/jquery-loadmask
Other
0 stars 0 forks source link

mask use on form causes instant redirect #10

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 jorin.ve...@gmail.com on 7 Jun 2011 at 11:54