using this in javascript function
<p>I have code like this  </p>

<pre><code>&lt;img onclick="getTitle();" title="myimg" &gt;  
function getTitle()  
{  
alert(jQuery(this).attr("title");  
}  
</code></pre>

<p>and its not working. Can somebody explain how to do this right. And what is wrong with this code.  </p>
