# How to get the height of a div element using jQuery?

To get the height of a div element, use the height() method in jQuery.

## Example

You can try to run the following code to get the height of a div element using jQuery:

Live Demo

<!DOCTYPE html>
<html>
<script>
$(document).ready(function(){$("button").click(function(){
alert("Height of div element: " + \$("div").height());
});
});
</script>
</html>