It is giving integer value.
If value is 15.6, it is showing 16 OR if value is 15.2, it is showing 15
How to do it? Please help
It is giving integer value.
If value is 15.6, it is showing 16 OR if value is 15.2, it is showing 15
How to do it? Please help
You may try using below method to get height
function getHeight(id){
var bound = $("#"+id)[0].getBoundingClientRect();
var height;
if (bound.height) {
height = bound.height;
} else {
height = bound.top - bound.bottom;
}
return height;
}