title: Changing text within jqueryUI dialog button after it is open
body: <p>How can I change the text for the cancel button from CANCEL to CLOSE?  Thanks!</p>
  
  <pre><code>$("#dialog").dialog({
      buttons     : [
          {
              text    : 'SAVE',
              click    : function() {}
          },
          {
              text    : 'CANCEL',
              click    : function() {}
          }
      ]    
  });
  $("#button").click(function(){alert('Please change cancel button text from "CANCEL" to "CLOSE"');});
  
  &lt;div id="dialog"&gt;&lt;button id="button"&gt;Change cancel button text from "CANCEL" to "CLOSE"&lt;/button&gt;&lt;/div&gt;
  </code></pre>