How do I disable a jqueryui button

Viewed 32573

When I click on a jquery ui button, it still triggers the click event callback. How do I block that event? Do I have to manually keep track of the state or does jquery ui take care of that for me?

5 Answers

It's actually:

$("#btn").button({"disabled":true});
Related