How to check if div height exceeds 700 pixels using jQuery?

I was wondering how I check if div height exceeds 700 pixels using jQuery?

Any help would be greatly appreciated. Thanks

+6
javascript jquery
source share
2 answers
if ($('#mydiv').height() > 700) { // Greater than 700px in height } 
+13
source share
 alert($("#theDiv").height() > 700); 

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

+5
source share

All Articles