Josoroma schrieb:
I have a form without a submit button, i was making the submit with
the following code:

<div class="buttons">
<a href="javascript:{}" class="positive" id="button_confirmAction"
style="display: block;" title="Register""
onClick="confirmAction('confirmAction'); return false;" ><img src="/
hoyque/img/icons/tick.png" alt=""/>Register</a>
<div>


How do i enable the call to validate before to realize the submit with
my href onclick "button" above?

Thanks in advance.
This may do the trick:

$("#button_confirmAction").click(function() {
 $("#UserRegisterForm").submit();
});

That submits the forms when the button is clicked, triggering validation like a normal submit button.

Jörn

Reply via email to