I want to add class to anchor tag which is in td using jquery
<p>This is my td:</p>

<pre><code>&lt;td width="64%" valign="top" class="addtocart_vak"&gt;
&lt;a href="/ShoppingCart.asp?ProductCode=QH1225264"&gt;
&lt;img border="0" align="absmiddle" src="btn_addtocart_small.gif"&gt;
&lt;/a&gt;
&lt;/td&gt;
</code></pre>

<p>I tried next jquery code:</p>

<pre><code>$('.addtocart_vak' 'a').addClass("anchor");
</code></pre>

<p>I also tried next:</p>

<pre><code>$(".addtocart_vak a[href$=/ShoppingCart.asp]").addClass("anchor");
</code></pre>

<p>Please give me correct solution.</p>

<p><strong>Update:</strong></p>

<p>I get the following JavaScript Exception:</p>

<blockquote>
  <p>[Exception... "'JavaScript component does not have a method named:
  "onStatusChange"' when calling method:
  [nsIWebProgressListener::onStatusChange]" nsresult: "0x80570030
  (NS_ERROR_XPC_JSOBJECT_HAS_NO_FUNCTION_NAMED)" location: ""
  data: no]</p>
</blockquote>

<p>can you give me solution how to fix that error?? </p>
