开发者

how can i make jquery tree with two level only?

i am beginer in jquery and i don't have experince in jquery but i need to use tree with two level , since when 开发者_JAVA百科i click on ?one link new links appear down of it , just like hotmail inbox idea ! can some one help ?


You may wish to check out this jQuery plugin: http://docs.jquery.com/Plugins/Treeview


There is no need to use jquery to build the tree. You can simlpy build the tree by using html and some + image sybol. you can control in the code to what leve you want to show the tree. Normally we uses recursive loops to build the tree. Whenever there is leaf node we add dot image and whenever there are children under it we can add + image symbol.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜