get height of div jquery code example
Example 1: jquery get document height
let height = ($(window).height() || $("body").height());
Example 2: get width of div jquery
$("#divId").width();
Example 3: jquery offsetheight
//The offsetHeight property includes the vertical padding and borders in the height calculation, therefore
//the .outerHeight() method would be the jQuery equivalent to offsetheight.
$('.site-header').outerHeight();