Hi,
I am using formcheck mootools plugin.
On clicking edit button:
I need to trigger when form submit; when validation is success.
I need to see error messages when validation fails.
new FormCheck ('editForm',
{
submit: false,
onValidateFailure: function() {
alert('fail');
},
onValidateSuccess: function() {
alert('success');
}
}
);
$('editButton').addEvent('click', function()
{
$$('#action').set('value', 'update');
$('editUserForm').submit();
}
);