This is a simple example of expanding and collapsing individual element via JavaScript. Click on the above buttons to see how it works.