>Without any arguments, all bound events are removed. If the type is provided, >all bound events of that type are removed. If the function that >was passed to >bind is provided as the second argument, only that specific event handler is >removed.
If you want to unbind EVERYTHING, just use .unbind(); otherwise if you want to unbind a click binding, use .unbind("click"); You only need to pass a function if you want to unbind the bound event that calls on that function. - T.J. On Dec 15, 4:11 pm, "laredotorn...@zipmail.com" <laredotorn...@zipmail.com> wrote: > I saw this, but that page only tells you how to unbind a specific > function that you know in advance. This code ... > > $('.cancelAction').unbind('click', function(){} ); > > does not work for me as far as being able to cancel all the onclick > actions associated with an element. Any other suggestions are > welcomed, - Dave > > On Dec 15, 3:07 pm, "T.J. Simmons" <theimmortal...@gmail.com> wrote: > > > > > Try $("#id").unbind("click"); > > > I've never used it before, but according > > tohttp://docs.jquery.com/Events/unbind#typefn > > that oughta do the job pretty nicely. > > > - T.J. > > > On Dec 15, 3:38 pm, "laredotorn...@zipmail.com" > > > <laredotorn...@zipmail.com> wrote: > > > Hi, > > > > I'm using JQuery 1.3. I have a button and I want to completely clear > > > it of any onclick events associated with it so that clicking it will > > > do absolutely nothing. If I know the ID of the button, how do I do > > > this? > > > > Thanks, - Dave