asp.net mvc
Adjust window size in jQuery
A
Desh-Duniya Team
Author
<script>
$(function () {
getTableHeight = function () {
var rowHeight = 30; // row height
var headerHeight = 50; // header height
var footerHeight = 60; // bottom scroll bar height
var totalH = 0;
totalH = $(window).height();
// console.log($("#serviceGrid").html());
$("#serviceGrid").removeAttr("style");
$("#serviceGrid").attr('style', 'height:' + totalH + 'px;');
//return 'height:' + totalH + 'px;';
};
getTableHeight();
});
</script>