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 Jun 21, 2022. It is now read-only.
i try to revalidate a clockpicker after input. But it seems, that the documented "afterDone" Event (i tried others too) is not firing:
$('.assign-clockpicker').clockpicker().on("afterDone", function() { var parentId = $(this).closest('form').attr("id"); if ( $(this).is('input') ) { var fieldName = $(this).attr('name'); } else { var fieldName = $(this).find('input').attr('name'); } $("#" + parentId).bootstrapValidator('revalidateField', fieldName); console.log(parentId); console.log(fieldName); });
If i switch the event with "change", the input gets revalidated (as expected) on value change. So for me this is a solution - i just wanted to give this fact to you, because i expected another behaviour.
The text was updated successfully, but these errors were encountered:
is still outofdate? i cant find "afterDone" function on jquery.clockpicker.min.js, i was installed from npm with command npm install clockpicker@latest.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hey guys,
i try to revalidate a clockpicker after input. But it seems, that the documented "afterDone" Event (i tried others too) is not firing:
$('.assign-clockpicker').clockpicker().on("afterDone", function() { var parentId = $(this).closest('form').attr("id"); if ( $(this).is('input') ) { var fieldName = $(this).attr('name'); } else { var fieldName = $(this).find('input').attr('name'); } $("#" + parentId).bootstrapValidator('revalidateField', fieldName); console.log(parentId); console.log(fieldName); });
If i switch the event with "change", the input gets revalidated (as expected) on value change. So for me this is a solution - i just wanted to give this fact to you, because i expected another behaviour.
The text was updated successfully, but these errors were encountered: