title: Problem with using dojoAttachpoint while adding /removing style
body: <p>I have a div as show below:</p>
  
  <pre><code>&lt;div id="xyz" dojoAttachPoint="xyz" style="display: none;"&gt;  &lt;/div&gt;
  </code></pre>
  
  <p>Now I want to show/ hide it. If I do it using dojo.byID it works. But if I do it using dojoAttachppoint it does not work properly. I don't get any errors but changes don't take place.</p>
  
  <pre><code>dojo.byId("xyz").style.display="none";
  dojo.byId("xyz").style.display="";
  
  
  this.xyz.style.display ="none";
  this.xyz.style.display ="";
  </code></pre>
  
  <p>What can be the problem?</p>