Search code examples
jqueryfirebug

How to remove click events that have been added in Firebug console?


If I do something like this in Firebug console:

$(document).on("click",".my_class", function () {

// do something

});

Is it possible to remove this event, so that I could test other events on the same element without the first defined on() event running as well?

I've tried running:

$('.my_class').off('click');

But that doesn't seem to do anything.


Solution

  • $(document).off("click", ".my_class")