Confirm box return value from alertify plugin and jquery
问题 I have a confirm dialog for my form. it is inside a jquery submit function. I am using alertify to show the confirm dialog. But problem is my jquery submit function returns before alertify gets the confirm box value. Read that alertify is non blocking. Any way to overcome this and return the confirm box value back to my form? $("#viewform").submit(function(){ alertify.confirm("Delete the selected entry?",function(e){ if(e) return true; else return false; }); }); The function always returns