I have a couple fields in a form.
On the iphone, when people are filling out their stuff, there is a "GO" button on the keyboard. Accidentally click this will submit the form
How can I use JQuery to return false whenever the "GO" button is pushed, but instead only submit the form when the "submit" button is clicked?
You can remove the action
tag from your <form>
and then submit your form in your tap action.
Something like:
$('#submit').tap(function() {
$.post('formsubmit_url.html', $("#formID").serialize());
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With