$("#delete_dialog").dialog({ resizable: false, modal: true, buttons: { 'Yes': function() { }, Cancel: function() { $(this).dialog('close'); } } });