Menu icon Foundation
Is valid or not? Without submiting

Hi. To trigger validation we can use:

$("#myform").foundation("validateForm");

but, method will return jQuery DOM element!

Where is boolean value?

validatedynamically

Hi. To trigger validation we can use:

$("#myform").foundation("validateForm");

but, method will return jQuery DOM element!

Where is boolean value?

Mike almost 3 years ago

Solved. Check exists ".is-invalid-input"

if ($('.is-invalid-input', element).length) return false;