title: Is there an 'on button disabled' event?
body: <p>Or how would I emulate it? What's going on is that I a bunch of buttons, many of which are disabled upon load, then has that attribute toggled depending on specific conditions. What I want to do is to give an option that allows disabled buttons to be hidden. If this is true, as soon as a button is disabled, I want it to be hidden--and when it's enabled afterwards, I want it to be visible. How would I do this?</p>
  
  <p>Right now I have a button that just does this on click:</p>
  
  <pre><code>$("button:disabled").toggle();
  </code></pre>
  
  <p>I'm thinking that I can have a function that disables/enables buttons, and in there check if a <code>shouldHideDisabledButtons</code> flag or so is on, and if so, hide or show it. This seems like too much though, so I'm looking to see if there's a better way.</p>