jQuery height() width()
Posted
by JamesBrownIsDead
on Stack Overflow
See other posts from Stack Overflow
or by JamesBrownIsDead
Published on 2010-04-13T22:00:21Z
Indexed on
2010/04/13
22:03 UTC
Read the original article
Hit count: 378
I have an image on the page:
<img id="foobar" src="emptySpace.gif" />
The image has an absolute
position of left: 0
and top: 0
in a .css file.
When I try this in JavaScript onmouseover
, the height and width don't change. What am I missing?
var image = jQuery("#foobar");
image.height(500).width(500);
What gives?
© Stack Overflow or respective owner