Powered by Vanilla 1.1.8.
I have a tab based application. I need to call validation while click on the tab links.
I need to call the validation while click on a link?
In validate mod plugin it is like $("#formId").validate().form()
like uniform.validate_form(form, true). I know validate_form is a private method.
What is the syntax for uniform?
I made a hack to finish my task. Now it is working fine for me.
May be it is not best way to do.
I added 2 lines in init function in
if(settings.validate == 'true')
return validate_form(form, true);
While on click of a link, I am using below code
settings = {
validate : 'true',
valid_class : 'valid',
invalid_class : 'invalid',
focused_class : 'focused',
holder_class : 'ctrlHolder',
field_selector : 'input, select, textarea'
};
if(UniForm.init($('.uniForm'), settings))
alert('Form is validated');
else
alert('Form has some errors');
1 to 2 of 2