jQuery: attr('height')

Posted by jerrygarciuh on Stack Overflow See other posts from Stack Overflow or by jerrygarciuh
Published on 2010-03-26T16:32:28Z Indexed on 2010/03/26 16:33 UTC
Read the original article Hit count: 544

Filed under:
|

Hi folks,

I have a container div with the following CSS:

#container {
  position:relative;
  overflow:hidden;
  width:200px;
  height:200px;
}

Why does this:

alert('height is ' + $("#container").attr('height'));

Return that height is undefined?

Thanks,

JG

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about css