Please, post some mark-up

----- Original Message ----- From: "MorningZ" <morni...@gmail.com>
To: "jQuery (English)" <jquery-en@googlegroups.com>
Sent: Tuesday, September 08, 2009 6:45 AM
Subject: [jQuery] Re: get image size?



"Whatever picture I try, the answer is alsway 272"

You realize of course that your selector is always choosing the same
DOM object

and are you calling ".change" on an <img> tag?  I don't think that's a
supported event handler on that kind of tag

Maybe if you show the actual HTML it will be clearer

On Sep 8, 3:54 am, heohni <heidi.anselstet...@consultingteam.de>
wrote:
I haveing an issue with this:

$("#ver_bildname").change(function () {
var width = $(this).width();
alert(width);

});

returns always 272?
Whatever picture I try, the answer is alsway 272.

$(this).val(); returns me the correct name,
var ext = $('#ver_bildname').val().split('.').pop().toLowerCase(); the
coorect file extension....

How can I get the current image size?

THANKS!!

Reply via email to