I am trying to disable click on a two div elements until another div has loaded completely. Once its loaded I am removing the pointer-events: none to it.
For this am adding a class which has as follows:
.someclass {
pointer-events: none
}
initially in the CSS , and then removing that using jQuery "removeClass" method once the other div/DOM is loaded.
I tried using bind and unbind events and also .on() and .off() but they weren't of any help.
Is there any alternative to this in jQuery or Javascript to disable click events on div's initially and enable once the DOM has loaded completely ?