Can someone tell me why is my submit() not firing?
If I try do it removing the alertify.confirm() just with my submit() it works.
$('.myBtn').click(function(){
alertify.confirm("Confirmation",function(e){
if(e){
$(this).closest('form').submit();
}else{
alertify.error('Nope');
}
});
});