IE issue with Jquery methods
<p>I am having trouble getting an ID of an element. The codes work in FF and chrome but not IE.
Can anyone help me about it? Thanks a lot</p>

<pre><code>&lt;td id='tdID'&gt;
    &lt;img id='test' src='a.jpg' class='imgClass' /&gt;
&lt;/td&gt;
</code></pre>

<p>jquery</p>

<pre><code>$('.imgClass').click(function(){
   ip=$(this).parent().attr('id');          

   //undefined in IE
   console.log(ip);
})
</code></pre>
