Jquery - get "defined" height of an element -


in code, element (tr) has inline style tag defines height of 31px. after rendering, height of tr expands 32px, because of content.

i'm trying read height of 31px via jquery, these methods computed height of 32px.

my question is: have read style attribute , extract height there, or there way getting value using jquery (or native javascript).

you can use .height

trheight = document.getelementbyid("mytr").style.height; 

Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -

r - Update two sets of radiobuttons reactively - shiny -