Open DennisLiu88 opened 5 years ago
Hello use it as a function `
xFunction
= function(event) {
event.preventDefault();
alertify.set({ labels: {
ok : "any label",
cancel : "any thing"
} });
alertify.confirm("Are
you sure? This cant be undone!!?", function (e) {
if (e) {
alertify.success("done or or Deleted Successfully");
document.getElementById("your
form name").submit() } else {
alertify.success("Nothing
was deleted!!");
}
});
}
'
and in your html call the function onclick="return xFunction(event) ;"
Thank You
Hi,
Could anyone help me with using
Because when i use that code when the message box pop up, it automatically refresh the page. I didn't call any refresh page. So when the messagebox pop up i have no time to choose or click ok or cancel because it refresh the page.
Is that a bug ? how i can prevent it from refresh the page ?
Thank You