i need to add class to each of the labels, not for group of checkboxes
Im assuming you want to close the modal after x seconds.
So.
function modal_form_success()
{
setTimeout(function(){
jQuery(‘.modal.active’).emodal(‘close’);
}, x);
}
and then in your forms callbacks
on_sent_ok: modal_form_success()
There are a couple of commands you can use with the emodal() function
close,open and center to name a few. For open though best to use the modals id eModal-# as a selector instead of .modal.active.
It is works! amazingly! thank you!
you could probably remove the emodal(‘close’) line entirely as you are redirecting. or use a setTimeout() to delay the redirect etc.
Can you give an example of delaying action to close modal window
Thank you in advance
maybe the is some other way to do this?