title: jQuery how to disable / enable Submit button in dialog
body: <p>I have a dialog:</p>
  
  <pre class="lang-js prettyprint-override"><code>$("#ceresume").dialog({
    modal: true,
    draggable: true,
    resizable: false,
    position: {
      my: "center",
      at: "center",
      of: window
    },
    show: "blind",
    hide: "blind",
    height: DIALOG_HEIGHT,
    width: DIALOG_WIDTH,
    dialogClass: "ui-dialog-osx",
    buttons: {
      "Submit": function() {
        /// ...
      }
    }
  });
  </code></pre>
  
  <p>I want to disable the Submit button so I tried this:</p>
  
  <pre><code>$("#ceresume, button:contains('Submit'])").prop("disabled", true);
  </code></pre>
  
  <p>Whilst:</p>
  
  <pre><code>$("#ceresume, button:contains('Submit'])")
  </code></pre>
  
  <p>Appears to return the correct results, setting the disabled attribute to true is not disabling the button.  How do I do this?</p>