• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Height of a Table Using Javascript

 
Pankaj Patel
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.

I am Pankaj Patel and i need your help.

How to find out height of a perticular html table using java script.

I had tried and seen is like, if i define height attribute in table tag, then it's coming but if i am not defining then it's not coming.

However, imagine, even though i am not giving/defining height attribute in table, after the page get loaded, it will be having some height. Can we find it out?

Regards,
Pankaj Patel
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to Javascript forum..
 
J. Kevin Robbins
Bartender
Posts: 1744
19
Chrome Firefox Browser jQuery Linux MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
$('#someDiv').height()

Check out this post for some more tips.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64720
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jk Robbins wrote:$('#someDiv').height()


This, of course, assumes the use of jQuery.

Without jQuery (as the link discusses) it's rather difficult.involved.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic