jquery adding class in parent
<pre><code>&lt;div class='pagename lock' style='float:left;width:200px;'&gt;
 &lt;a href='javascript:void(0);' class='pages' title='Click to Go'  rel="id" &gt;
&lt;/div&gt;

$(".pages a[rel=id]").parent().addClass("unlock")
</code></pre>

<p>The <code>Unlock</code> class is not adding in parent <code>div</code>, why?</p>
