Confirmation dialog in jquery
<p>How can I put the confirmation dialog box to notify the user if is sure to delete the selected data in jquery  .
I  want the user to be asked if he wants to delete or not .
The code below works perfectly but I want  it to be with that functionality .</p>

<pre><code>&lt;script type="text/javascript"&gt;
$(document).ready(function () {
    $('a.delete').click(function (e) {
        e.preventDefault();
        var parent = $(this).parent();
        $.ajax({
            type: 'POST',
            url: 'delete.php',
            data: 'ajax=1&amp;delete=' + parent.attr('id').replace('record-', ''),
            beforeSend: function () {
                parent.animate({
                    backgroundColor: '#fbc7c7'
                }, 300)
            },
            success: function () {
                parent.slideUp(300, function () {
                    parent.remove();
                });
            }
        });
    });
});
&lt;/script&gt;
</code></pre>
