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
Hi,
is there a callback function that let me do something if the complete form is valid.
I tried to use
$('input').on('validation', function(evt, valid) {
console.log($('#MyFormID').isValid(lang, conf, false)
);});
But I get "too much recursion" as error.
thanks in advance
The text was updated successfully, but these errors were encountered:
OK, found a solution by myself. So if one is interested here it is:
I put the class 'isrequired' to each form element that needs to be validated.
Than in JS
$('.isrequired').blur(function(){
var FormValid = true;
$('#MyFormID').find('.isrequired').each(function(){
$(this).validate(function(isValid, el) {
if (!isValid) FormValid = false;
});
});
console.log(FormValid )
});
CaptainMik
changed the title
OnSuccess - form is valid
OnBlur - form is valid
Nov 5, 2018
Hi,
is there a callback function that let me do something if the complete form is valid.
I tried to use
$('input').on('validation', function(evt, valid) {
console.log($('#MyFormID').isValid(lang, conf, false)
);});
But I get "too much recursion" as error.
thanks in advance
The text was updated successfully, but these errors were encountered: