I'm building an web app using cordova targeting iOS. I have this form
<form id="formID">
<div class="row">
<input type="text" name="something1" placeholder="something1" class="form-control" required maxlength="26" />
</div>
<div class="row">
<input type="text" name="something2" placeholder="something2" class="form-control" pattern=".{6,6}" required />
</div>
<div class="row">
<input type="submit" value="Submit" class="button btn-primary" />
</div>
</form>
In my javascript I then have a listener for the submit event.
My problem is that when the keyboard is showing in iOS, clicking the submit buttons doesn't always trigger the submit event. Somethimes it works the first 2 times but then stops working. Anyone that has run in to this before?
As it is now you may need to first click "Done" on the keyboard (making it disappear) and then use the submit button. Or, click the submit button with the keyboard showing which will make the keybpoard hide and then click the submit again.
Any ideas?
EDIT
It works fine on iOS 6, but on iOS 7 the submit button doesn't trigger an event after the first 2 clicks.