Expanding Divs with Height Auto jQuery

There is no expand a div to auto height. Cool trick to achieve this is with a max-height. Set it to 0 in the css, then expand with jQuery. The div will take the height you’re looking for.



And then to toggle that:



Leave a Reply

Your email address will not be published. Required fields are marked *

54 − 45 =