title: trouble with addClass to ui-dialog button
body: <p>Could someone please help me add a class to ui-dialog-buttonset.. I have 2 buttons "add" and "delete" and would like to style each appropriately.</p>
  
  <p>How can I add a class to the button that reads 'Add this item'</p>
  
  <pre><code>$dialogContent.dialog({
              modal: true,
              resizable: false,
              title: "New thing",
              close: function() {
                  $dialogContent.dialog("destroy");
                  $dialogContent.hide();
                  $('#other').stuff("removeUnsavedEvents");
              },
  
              buttons: {
                  'Add this item' : function() {
  
                      if(client_url.val() == '')
                      {
                          alert('client not selected');
                          $other.stuff("removeUnsavedEvents");
                          $dialogContent.dialog("close");
                          return;
                      }
  
                              $dialogContent.dialog("close");
                          },
                      });
  
                      update_stuff_overview();
                  }
              }
  
          }
  </code></pre>
  
  <p>Thanks</p>
  
  <p>Edited to add html from ui-dialog plugin..</p>
  
  <pre><code>&lt;div class="ui-dialog-buttonset"&gt;
      &lt;button type="button" class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" role="button"&gt;
          &lt;span class="ui-button-text"&gt;Add this item&lt;/span&gt;
      &lt;/button&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I'm trying to add "new_class" to the button above.</p>