title: How to Get Element By Class and add/remove attribute in JavaScript?
body: <p>Below mentioned is the way to <code>get the element</code> by <code>Class Name</code></p>
  
  <pre><code>var Tag = replaceContentInContainer('className');
  
  function replaceContentInContainer(matchClass) {
      var elems = document.getElementsByTagName('*'), i;
      for (i in elems) {
          if ((" " + elems[i].className + " ").indexOf(" " + matchClass + " ") &gt; -1) {
          }
      }
  }
  </code></pre>
  
  <p>I have <code>onclick</code> and <code>style</code> attribute with this Tag. </p>
  
  <p>My query is, How can I remove/add the <code>onclick/style</code> attribute in this tag using <code>JavaScript</code> ?</p>