Jump to content

get table height


robert_gsfame

Recommended Posts

"so any changes of table height" - there's no standard event that will allow you to automatically do this. Instead you'll need to identify what can cause changes in the height, and bind a function to an appropriate event there (or to several elements).

 

@priti

I think you mean .css('height'), but better is .height() -- the latter returning a unit-less pixel value.

 

Using standard JavaScript makes this a lot more awkward, but you may have some look with .clientWidth/.clientHeight or .scrollWidth/.scrollHeight. The only problem being the differences between browsers make them very hard to work with reliably. If you're already using jQuery (or another framework) I'd definitely use the built-in functions.

Link to comment
https://forums.phpfreaks.com/topic/202929-get-table-height/#findComment-1063536
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.