jquery: click callback is called even if button is disabled?
I have this code:

    // jquery
    $(':button').live('click', eventHandler);

    <!--html-->
    <button type="button" name="lvldown" disabled="disabled">Level down</button>

I expected the click event not to be invoked after click if the button is disabled because of this `<button> disabled` [description][1] at w3schools:

> *Definition and Usage*
> 
> *The disabled attribute specifies that a button should be disabled.*
> 
> *A disabled button is unusable and un-clickable.*

However, my `eventHandler` is still being called after click. Why is that? Do I really need to do something like `$(':button:not([disabled])').live('click', eventHandler);`?


  [1]: http://www.w3schools.com/tags/att_button_disabled.asp
jquery: click callback is called even if button is disabled?
===

I have this code:

    // jquery
    $(':button').live('click', eventHandler);

    <!--html-->
    <button type="button" name="lvldown" disabled="disabled">Level down</button>

I expected the click event not to be invoked after click if the button is disabled because of this `<button> disabled` [description][1] at w3schools:

> *Definition and Usage*
> 
> *The disabled attribute specifies that a button should be disabled.*
> 
> *A disabled button is unusable and un-clickable.*

However, my `eventHandler` is still being called after click. Why is that? Do I really need to do something like `$(':button:not([disabled])').live('click', eventHandler);`?


  [1]: http://www.w3schools.com/tags/att_button_disabled.asp