title: JavaScript setting pointer-events
body: <p>I am trying to set <code>pointer-events: none</code> for a div through JavaScript, however the property is not being applied.</p>
  
  <p>I have tried:</p>
  
  <pre><code>document.getElementById("div").setAttribute("pointer-events", "none");
  </code></pre>
  
  <p>And:</p>
  
  <pre><code>document.getElementById("div").style.pointer-events = "none";
  </code></pre>
  
  <p>But neither worked, <strong>any ideas?</strong></p>