Edit in JSFiddle

<div>Hello, I am div.</div>
<input type="button" value="Press Me" id="pressMe">
$("#pressMe").click(function () {
alert($("div").height());

});