I am using jConfirm for confirm dialog with success.
Here is the code
<script>
function DeleteUser(){
if (window.jConfirm('Etes-vous sur de modifier?')) {
document.window.dform.submit(); //on envoie le formulaire
} else {return false;}
}
</script>
<form action="<?php $_SERVER['PHP_SELF']?>" method="post" name="dform " id="dform" onsubmit="return DeleteUser();">
<input type="submit" value="Modifier" name="modifier"/>
</form>
The problem is that the dialog is show but does not wait for user answer and continues.
When change to classic javascript confirm everything works fine!
the solution is in other similar posts:
jConfirm with this existing code
jConfirm alert – jQuery plugin
Regards