Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I check if the height of a div is greater than 700px, using Jquery?

I was wondering, how I check if the height of a div is greater than 700px, using Jquery?

Any help would greatly be appreciated. Thanks

like image 380
Nasir Avatar asked Aug 25 '10 13:08

Nasir


Video Answer


2 Answers

if ($('#mydiv').height() > 700) {
    // Greater than 700px in height
}
like image 143
BoltClock Avatar answered Oct 16 '22 17:10

BoltClock


alert($("#theDiv").height() > 700);

Reference: http://api.jquery.com/height/

like image 9
karim79 Avatar answered Oct 16 '22 16:10

karim79