You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.
because I use button but not submit,here is my code: $('#form').validator('validate'); dictionaryApi.saveOrUpdate({ //call this api to save the entity })
But when the form is invalid,it's still can save success,so I want to know if the form is valid,if not,I will return the function.Just like the formvalidation,the is a function named isValid(),
isValid(): Boolean — Check the form validity.
Can you help me?thanks so much.
The text was updated successfully, but these errors were encountered:
$('#form').validator('validate'); // Execute the validation if($('form').data('bs.validator').validate().hasErrors()) { // error goes here } else { // No errors do something.. }
Use the above code to handle the validation. This should be definitely placed in the docs to make it easier for people to find.
because I use button but not submit,here is my code:
$('#form').validator('validate'); dictionaryApi.saveOrUpdate({ //call this api to save the entity })
But when the form is invalid,it's still can save success,so I want to know if the form is valid,if not,I will return the function.Just like the formvalidation,the is a function named isValid(),
isValid(): Boolean — Check the form validity.
Can you help me?thanks so much.
The text was updated successfully, but these errors were encountered: