I can not add button to this jquery ui dialog. if possible please give me an example . thanks.
Sometimes you want to add the buttons dynamically after the dialog is created too. See my answer at the question Add a button to a dialog box dynamically
var mydialog = ... result of jqueryui .dialog()
var buttons = mydialog.dialog("option", "buttons"); // getter
$.extend(buttons, { foo: function () { alert('foo'); } });
mydialog.dialog("option", "buttons", buttons); // setter