I am trying to set pointer-events: none for a div through JavaScript, however the property is not being applied.
pointer-events: none
I have tried:
document.getE
You can access style properties via Bracket notation like this:
document.getElementById("div").style['pointer-events'] = 'auto';
No need in camel case modification in this case.