Home
<!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script> <style> .test { padding: 10px; background-color: coral; } </style> <script> $(document).ready(function () { $("button").click(function () { $('#mydiv').outerHeight(200); }); }); </script> </head> <body> <h1>jQuery Manipulation Methods: outerHeight()</h1> <div id="mydiv" class="test"> <p>This is a paragraph</p> <p>This is a paragraph</p> </div> <br/> <br/> <button>Click Here to Test .outerHeight()</button> </body> </html>
Result: