Reputation: 1221
I have the following code and instead of height(300), height() = document height-100
$(".bar").height(XXX);
Upvotes: 0
Views: 3809
Reputation: 1725
var DocHeight = $(document).height();
$(".bar").height(DocHeight-100);
Upvotes: 3