I'm using an inline function to submit a form but it's not calling the validation script I have and I wondered if anyone could point me in the right direction of an answer?
My button:
<a href="javascript:UpdateEnquiry();" id="continue_btn" class="btnSprite">Save</a>
My Function:
function UpdateEnquiry() {
$.ajax({
url: 'test.php',
dataType: 'xml',
timeout: 15000,
type: 'post',
data: $('#validate').serialize(),
success: UpdateEnquirySuccess,
error: function (result) {parent.$.fancybox.close();}
});
}
And I would like to initialise the jquery validationEngine plugin before submit. http://www.position-absolute.com/articles/jquery-form-validator-because-form-validation-is-a-mess/
Any help would be hugely appreciated.
Kind regards Rachel