Saturday, 14 September 2013

image width not showing exact value

image width not showing exact value

I'm trying to get the width of the image but it's alerting zero.
var $curimg = $('#banner').find('.img1');
alert($curimg.Width()); // alerts 0
As I'm working on a slider which is scrolling images so it is confusing
for me what wrong with the width of image.

No comments:

Post a Comment