title: How to find anchor tag in div and add class?
body: <p>I have a particular div class in which there is anchor tag with no class and i have to add class to it using jquery.
  This is sample html</p>
  
  <pre><code>&lt;div id="mydiv"&gt;&lt;a href="www.google.com"&gt;myclass&lt;/a&gt;&lt;/div&gt;
  </code></pre>
  
  <p>This is what i am trying but not working</p>
  
  <pre><code>$('.myclass','a').attr('class','myclass');
  </code></pre>
  
  <p>Thanks in advance.</p>