use .data to store a boolean variable on the DOM element, then in the click function check that variable to see if it is enabled or not.
Josh Powell On Nov 27, 12:46 am, Neil Craig <[EMAIL PROTECTED]> wrote: > Something I would like to do is to add several events handlers to an > element and control the firing by enabling & disabling it. For > example: > > jQuery(".sample").click(function() { // do something }).disable(); > > Clicking should not fire the event until jQuery(".sample").enable() > has been called. > > Have anyone done something similar?