title: Apply CSS to disabled input button
body: <pre><code>    &lt;input type="button" value="Share" id="buttonShareMap" style="float:right; width:68px;" disabled="disabled"/&gt; 
  
  /* Only enable 'SHARE' btns if a checkbox is selected */
           var checkboxes = $("input[type='checkbox']"),
              submitButtShare = $("#buttonShareMap");
  
           checkboxes.click(function () {
               submitButtShare.attr("disabled", !checkboxes.is(":checked"));
           });
  </code></pre>
  
  <p>This code works fine, only enabling the button if a check box is clicked. However I want to use the css classes 'class="edit red btn"', and although the functionality is still working the button appears visible. </p>
  
  <p>I would like to add one css class if button is enabled and another if it is disabled...How Can I do this? thanks</p>