jQuery Dialog shows only once

jQuery Dialog shows only once


Hi guys
I have a grid, with a listing. I use 2 columns to put modify and
delete icons. So each row has its modify and delete icons. When user
clicks the delete image, a modal dialog should appear asking him if he
wants to delete that record.
My problem is that it works only once. So, if user clicks cancel
button, then he can't see the dialog again
What's wrong?
jQuery(document).ready(function(){
    jQuery(".botoneliminar").click(function () {
    jQuery("#divdialogo").dialog({
        bgiframe: true,
        autoOpen: true,
        closeOnEscape: true,
        draggable: false,
        hide: 'slide',
        resizable: false,
        height:140,
        modal: true,
        overlay: {
            backgroundColor: '#000',
            opacity: 0.5
            },
        buttons: {
            'Eliminar': function() {
                $(this).dialog('close');
                alert("Closed");
            },
            Cancel: function() {
                $(this).dialog('close');
            }
        }
    });
    });
});
Thanks a lot in advance,