title: Set an attribute to the div tag
body: <p>I have a simple code </p>
  
  <pre><code>&lt;div class="content"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I want to echo something inside the div tag using javascript to show this way</p>
  
  <pre><code>&lt;div class="content" something&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I need it using javascript because I want to use a function to echo something if the screen is wider than 960px
  I used this answer for the second part <a href="https://stackoverflow.com/questions/7715124/do-something-if-screen-width-is-less-than-960-px">Do something if screen width is less than 960 px</a></p>
  
  <p>Thanks guy in advance.</p>