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');
}
});
});
This is the most similar way that I found to do it as I wanted. $('.myBtn') is a normal button inside a form. I call it with a class because they are a set of forms.
});