So, I solved the problem that I encountered. As stated in the question, it worked perfectly for ios6 and android. But for ios7, I noticed that when I increased the height of the text fields above the submit button, I got the error described above. When I did not add a non-default style, which affected the height of the elements above the submit button, it worked. Itβs strange.
But then I read this question .
Therefore, instead of having a submit button and my script waiting for the send event to be fired, I changed the button to a link and listened for the touchhend event. Bam, it worked like a charm.
$(document).on('touchend', 'form #button', function (e) { $('#formID').submit(); });
So, I allow this event to be bypassed and fires the send event, so pressing the Go button on the keyboard still calls the send function.
source share