
What fires the submit action of a form without a submit button
Why not do the verification in the form's onsubmit handler and cancel the
submit if there's an error?
<form onsubmit="return checkit()">
...
</form>
<script>
function checkit() {
if (there's an error) return false;
else return true;
}
</script>
=-=-=
Steve
-=-=-
Quote:
> I have a form that does not have a submit button on it. It has only
> three radio buttons a input text box and a button. The button is so
> that I can do a verification and then fire the submit event. My
> problem is that if the user hits enter in the text box, the form gets
> submitted.
> Sent via Deja.com http://www.deja.com/
> Before you buy.