title: How to initialize buttons in jquery ui dialog
body: <p>I am using jquery ui dialog. I have initialized a dialog at <code>document.ready</code> event. </p>
  
  <pre><code>   $("#globalConfirm").dialog({
          width: 500, autoOpen: false, resizable: false, draggable: false,
          modal: false        
     });
  </code></pre>
  
  <p>This dialog is for confirmation. Now later i want to add a buttons options and there callback functions like :</p>
  
  <pre><code>   $("#globalConfirm").dialog("option", "buttons", '{
          "Confirm": function (event, ui) {
              //jquery code
          },
          "Cancle": function (event, ui) {
              $(this).dialog("close");
          }'
      );
  </code></pre>
  
  <p>Is this write way to initialize the buttons option of jquery ui dialog after initializing dialog ?</p>