title: jQuery Mobile how to check if button is disabled?
body: <p>I disable the button like this on my jQuery Mobile webpage:</p>
  
  <pre><code>$(document).ready(function() {
      $("#deliveryNext").button();
      $("#deliveryNext").button('disable');
  });
  </code></pre>
  
  <p>and i can enable it with</p>
  
  <pre><code>$("#deliveryNext").button('enable');
  </code></pre>
  
  <p>But how do i check if the button is disabled or enabled? </p>
  
  <p>This command gives "undefined":</p>
  
  <pre><code>$("#deliveryNext").attr('disabled')
  </code></pre>
  
  <p>Some ideas?</p>
  
  <p>Edit: i find out that $("#deliveryNext").button('disable') only seams to change the style on the button, the clicking works fine after so i need to disable the button some how also.. i tried .attr('disabled', 'disabled') but when i then test .attr('disabled') i get undefined... </p>
  
  <p>Edit2: more about my "real" problem at <a href="https://stackoverflow.com/questions/6438659/how-to-disable-a-link-button-in-jquery-mobile">How to disable a link button in jQuery Mobile?</a></p>