PDA

View Full Version : Using javascript to submit a SPRY validated form


roroland
01-22-2009, 02:42 PM
Hi:

I have a basic html form and some spry validation to check for proper email addresses and phone numbers. Everything works fine when I try to submit the form with a "standard" submit button.

But I need to send the form with a javascript function like this:

function SubmitForm()
{
document.getElementById("form1").submit();
}

If I use this function the form is send but the validation don't work.

Can you help me ? PLEASE !!