title: Make a JQuery disabled button enabled with proper styles
body: <p>I have a JQuery Button, disabled by default and I need to enable it on certain event.</p>
  
  <p>My problem is that when I just simply remove the attribute 'disabled' the button maintains the disabled jquery css styles.</p>
  
  <p>I removed them by hand:</p>
  
  <pre><code>$('[id$=btnDowloadXLS]').removeAttr("disabled").removeClass("ui-state-disabled").removeClass("ui-button-disabled");
  </code></pre>
  
  <p>But, then the button is not the same as an active button, onMouseDown it doesn't take the proper style.</p>
  
  <p>I figured out this solution</p>
  
  <pre><code> $('[id$=btnDowloadXLS]').button({ disabled: false });
  </code></pre>
  
  <p>which I think <strong>creates again</strong> the JQuery button.</p>
  
  <p>My question is: is there a cleaner, proper way to re-enable a button and that the button gets the proper/by-default enabled styles?</p>