asp.net mvc

Adjust window size in jQuery

A
Desh-Duniya Team Author
| Published May 15, 2019
<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>

Discussion (0)

Please sign in to participate in the discussion.
No comments yet. Be the first to join the conversation!