Athan Clark Athan Clark - 1 year ago 148
jQuery Question

Manually triggered Abide validation in Zurb Foundation

I'm trying to make myself a form, but I need to prevent some UX stuff depending on if a form was entered correctly. Is there an api for manually issuing the validation routine to a form's field? I know that I could listen to the post-validation events, but I actually need to start the validation from an external source.

Is this possible?

Answer Source

You can dispatch a change event to the form with jQuery: $("#myForm").trigger("change");
It will trigger validation.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download