Nasir Nasir - 1 year ago 60
Javascript Question

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

Answer Source
if ($('#mydiv').height() > 700) {
    // Greater than 700px in height
}