# How to get the height of an element using jQuery?

jQueryWeb DevelopmentFront End Technology

To get the height of an element using jQuery, use the height() method.

## Example

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

Live Demo

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