Sunday, July 30, 2017

Show the structure of jQuery outerWidth() and outerHeight() Methods.

Example

$("button").click(function(){
    var txt = "";
    txt += "Outer width: " + $("#div1").outerWidth() + "</br>";
    txt += "Outer height: " + $("#div1").outerHeight();
    $("#div1").html(txt);
});