Toggle Expander Java Script

Toggle Expander Java Script

A simple javascript code that expands a block of text. For example, when you click the title or image, the text under it will expand. when you press the title or image again, it will collapse the text. A function that basically toggles the visibility of an element e.g. click, show, click, hide.



  • List don’t have a depth limit and you can use more than one list on the same page.
  • Dynamically adds buttons and expand and collapse all child lists.
  • Set depth level up to which you want to have lists initially expanded.
  • Cross browser support.
  • Accessible to browsers with Javascript or CSS support.


Get Code

Get id


Learn How to install Toggle Expander Java Script?

Find More related Toggle Expander Java Script

Have any Question or Comment?

Leave a Reply

Your email address will not be published. Required fields are marked *