title: How to add id using dojo.query to search element
body: <p>I'm trying to add id to a  element using dojo.query. I'm not sure if it's possible though. I trying to use the code below to add the id but it's not working.</p>
  
  <pre><code>dojo.query('div[style=""]').attr("id","main-body");
  
  &lt;div style=""&gt;
    content
  &lt;/div&gt;
  </code></pre>
  
  <p>If this is not possible, is there another way to do it? Using javascript or jquery? Thanks.</p>