Prevent script from running using jConfirm like native confirm
<p>i have a problem with jConfirm, it should work just like the normal javascript confim box but it doesn't, here's an example</p>

<pre><code>&lt;input type="submit" value="click" onClick="return jConfirm('are you sure?')"&gt;
</code></pre>

<p>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?</p>

<p>Thanks in Advance </p>

<p>EDIT1: Using Slaks idea i'm trying to tweak the default jAlert plugin, here's what i got.</p>

<pre><code>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
            });
},
</code></pre>

<p>The problem is that i don't know how to pass the 'btnId' variable to the _show callback function, any thoughts?</p>
