jQuery plugin: Treeview

Note as of April 2010: While the plugin still works as it is, it has some shortcomings, and not maintained anymore. There are now plenty of alternative jQuery tree plugins, like jsTree.

Note October 2010: Despite the above, I’ve moved the plugin to GitHub, fixed a bug when combining persist: “location” and prerendered: true, and released (tagged in Git) 1.4.1.

Transform an unordered list into an expandable and collapsable tree, great for unobtrusive navigation enhancements. Supports both location and cookie based persistence.

Current version: 1.4.1
License: MIT


GitHub Repository




  • Please post questions to the official Using jQuery Plugins Forum, tagging your question with (at least) “treeview”. Keep your question short and succinct and provide code when possible; a testpage makes it much more likely that you get an useful answer in no time.


$ USDDonate€ EURDonate