How to get x% height in px?

css, jquery

Solution

With jquery you can use this, when container is the id of the div:

$(document).ready(function() {
    alert($('#container').height());
});

Problem

I gave 100% height to a div and I want the actual height in px. How can I find out the height of that div?

Original source