1) Inlcude the JS file into your page (after jQuery): 2) Call the divgrow function to any div element you want to grow. initialHeight sets the height of the containers before they are expanded.