i have a problem with jConfirm, it should work just like the normal javascript confim box but it doesn't, here's an example
<input type="submit" value="click" onClick="return jConfirm('are you sure?')">
If i use the normal confirm it stops the script until a response is given, with jConfirm however, the form is still being submitted, even if no answer is given, any workarounds?
Thanks in Advance
EDIT1: Using Slaks idea i'm trying to tweak the default jAlert plugin, here's what i got.
submit: function(message, title, btnId) {
$.alerts._show(title, message, null, 'confirm', function(result, btnId) {
if (result){
var form = $('#'+btnId).closest('form');
form.trigger('submit');
}
else
return false
});
},
The problem is that i don't know how to pass the 'btnId' variable to the _show callback function, any thoughts?