jQuery Actual image diamension

Posted by Mithun on Stack Overflow See other posts from Stack Overflow or by Mithun
Published on 2010-06-06T18:22:20Z Indexed on 2010/06/06 18:52 UTC
Read the original article Hit count: 356

Filed under:
|
|
|
|

I have a 1024x768 image

<span class="frame">
<img alt="Image" title="Image" src="http://localhost/zapav/site/assets/questions/D41120CA-7164-11DF-A79E-F4CE462E9D80_Green_Sea_Turtle.jpg">
</span> 

and the below CSS sets the image width to

.frame img{
    width:425px;
}

And the jQuery code

$('.uploaded_image img').attr("width");

returns 425

How can i retrieve the actual width of the image 1024 in JavaScipt?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery