Accordion, change height dependent of content

Job ID: 32424601

Budget: $10 – $30 USD

I would like an accordion to change height dependent of the content.

1) When a daterangepicker is opened inside the accordion, the height of the accordion should change to fit the daterangepicker. (see pic1)
2) When a select is exapned inside the accordion, the height of the accordion should change to fit the select (see pic2)

- The solution should be generic, i.e the code should not only work for the example.
- The soluion should be put in new files.

I have included an example.
Related categories: JavaScript CSS HTML jQuery / Prototype