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

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -