Collapsible Div
<script language="javascript"> function togglefun() { var ele = document.getElementById("toggleText"); var text = document.getElementById("displayText"); if(ele.style.display == "block") { ele.style.display = "none"; text.innerHTML = "[+]"; } else { ele.style.display = "block"; text.innerHTML = "[-]"; } } </script> <a id="displayText" href="javascript:togglefun();">[+]</a> Click here <div id="toggleText" style="display: none"><h1>Iam Collapsible Div</h1></div>