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.
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.
Features
- 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.
Comments
Post a Comment