Dynamic Content

Content1 | Content2 | Content3
This JavaScript displays different content for different links. On clicking on the link the content becomes visible and on clicking on it again it becomes hidden.

Here only a single <div> tag has been used. The contents of each link is stored in the form of a hidden element.

© Premshree Pillai