[jQuery] malsup form plugin with bassistance validation plugin help
Im struggling to integrate the form plugin with the validation plugin
I was using this code:
var options = {
target: '#output',
url: 'projects/updater.php',
success: function(){done()}
};
$("#formClip").validate({
submitHandler: function(form) {
$(form).ajaxSubmit(options);
},
rules: {title: { required: true }},
messages: {title: "title of clip required!"}
});
function done() {
alert('done!');
}
but since uploading the latest version of the validation plugin this
does not work.
I've looked at the example integration but it looks complicated plus I
dont want the rules as classes within the form that seems wrong to me.
Has anyone done this recently and can share some code
thanks.
Matt.