I'm writing an app with Phonegap and I have a register form that is sent through ajax.
It works fine when you hit the register button and execute the formcheck()
function. However, when I hit the GO
button from my android phone it submits the form instead of going through the formcheck()
process. I tried:
<form id="RegForm" onsubmit="formcheck();return false;">
My form has no proper submit button but a button like this:
<input type="button" id="submitbtn" onclick="formcheck()"/>
I also tried to create a new OnSubmitForm()
function that calls the formcheck()
one but with no avail.
Thank you for helping.