This is a simple example of expanding and collapsing individual element via JavaScript. Click on the Toggle Button button to see the effect.