title: How to change class style for children element by parent element id?
body: <p>For example I have simple html code:</p>
  
  <pre><code> &lt;a id="news" href="#"&gt;&lt;div class="" &gt;News&lt;/div&gt;&lt;/a&gt;
  </code></pre>
  
  <p>How to change class style for div element by id of href on pure javascript ?
  Or may be better describe div properties in class for "a" element  ? ( How to do it ?)</p>