How to unbind a listener that is calling event.preventDefault() (using jQuery)?

user188049 picture user188049 · Oct 11, 2009 · Viewed 231.1k times · Source

jquery toggle calls preventDefault() by default, so the defaults don't work. you can't click a checkbox, you cant click a link etc etc

is it possible to restore the default handler?

Answer

klaus picture klaus · Feb 15, 2013

In my case:

$('#some_link').click(function(event){
    event.preventDefault();
});

$('#some_link').unbind('click'); worked as the only method to restore the default action.

As seen over here: https://stackoverflow.com/a/1673570/211514