jQuery.fn.outerHeight  function     

Lets you set the outer height of an object where:
outerHeight = height + padding + border + (margin).

$("#foo").outerHeight(100); //sets outer height
$("#foo").outerHeight(100, true); //uses margins
$("#foo").outerHeight(); //returns outer height
$("#foo").outerHeight(true); //returns outer height with margins
When setting the outerHeight, it adjusts the height of the element.

$.fn.outerHeight(height, includeMargin) -> jQuery|Number
{optional:Number|Boolean}

If a number is provided -> sets the outer height of the object.
If true is given -> returns the outer height and includes margins.
If no value is given -> returns the outer height without margin.

{optional:Boolean}

Makes setting the outerHeight adjust for margin.

{jQuery|Number}

If you are setting the value, returns the jQuery wrapped elements. Otherwise, returns outerHeight in pixels.

© Jupiter IT - JavaScriptMVC Training and Support