[jQuery] How to bind ajaxForm & Vaildate via livequery on Form which was loaded via load() ??
Hi
I'm loading a form via load() and want to Validate it via Validate
Plugin and send it via ajaxForm()
My Code looks like that:
$('#detailform').livequery(function() {
$("#detailform").validate();
var options = {
url: 'index.php?idcatside=33',
target: '#contactformfield',
method: 'GET',
success: function() { }
};
$('#detailform').ajaxForm(options);
return false;
});
My problem is now that everything is working but the form is sent
immediatly, the script
doesn't wait for the validation.
How can I change that?
THX & cheers
Philipp