EDITABLE CODE:
LiveDemo:jQuery - attr() Method using function
Note: The method is used to set the height using attr() method with function as an argument.