'How to exclude certain element to be triggered by $(document).off('click')

I am trying to disable all click events except specific click on event on element.

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

Since it is disabling all the click events. I need to ignore it for certain element for example .navbar-toggle

Are there any way to exclude elements from this $(document).off('click')?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source