[go: nahoru, domu]

Skip to content

nielsoffice/JSClickEventDisable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

JSClickEventDisable

JavaScript Disable click event targeted element

  const RecursiveUnbind = function($jElement) {

    $jElement.unbind();
    $jElement.removeAttr('onclick');
    $jElement.children().each(function () {
        RecursiveUnbind($(this));
    });
  }
  	 
   // PopUpContainer is getting clicked! blocked lightbox * 
    RecursiveUnbind( jQuery('Element') );
 
  // Reference: https://stackoverflow.com/questions/1755815/disable-all-click-events-on-page-javascript

About

JavaScript Disable click event targeted element

Topics

Resources

Stars

Watchers

Forks