JQuery returns undefined when I access my image attribute
<p>I have an image on my html document and I've put it like this:</p>

<pre><code>&lt;img src="picture.jpg:/&gt;
</code></pre>

<p>I reference it in jquery by:</p>

<pre><code>$('img').click( function() {
    alert($(this).attr('width'));
});
</code></pre>

<p>It catches the event but it returns undefined value. Is there another way on how to extract the width and height?</p>
