title: Changing class of a div using parent's id - jquery
body: <p>In my page there is an <code>&lt;a&gt;</code> tag and inside that there is a <code>&lt;div&gt;</code>. that is shown below: </p>
  
  <pre><code> &lt;a id="test"  title="Change Color Code" href="#" class="modalDlg"&gt;
       &lt;div class="&lt;%:(colorCode) %&gt;"&gt;
  
       &lt;/div&gt;
   &lt;/a&gt;
  </code></pre>
  
  <p>How can i change the class of <code>&lt;div&gt;</code> when i click on another button in that page ( i only have the id of the hyperlink (ie , test ) ).</p>
  
  <p>Can i change the class of that <code>&lt;div&gt;</code> using the hyperlink id (which contains that div) using jquery ?</p>