Ylbtech-javascript-tool:wdtree |
1, plug-in Description:
Wdtree is a lightweight jquery plugin for creating a tree control with nested check boxe。
Wdtree is a lightweight jquery plugin for creating a tree control with nested check Boxe . It has the following characteristics:
- Parent-child node selected
- Lazy add tree node from database
- Configurable node properties
- A huge data tree
This demo loads the performance of a 10,000 node at a time,
You can expand/collapse and examine/uncheked nodes to learn how to respond quickly.
Use steps
Gets the selected node
The following lines show how to get the selected node
$ ("#showchecked"). Click (function(e) { var s=$ ("#tree"). Getcheckednodes (); if (s! =null) alert (S.join (",")) ; Else alert ("NULL"); });
Get current node
The following lines show how to get the current node
// the following lines show how to get the current node. $ ("#showcurrent"). Click (function(e) { var s=$ ("#tree"). Getcurrentnode (); if (s! =null) alert (s.text) ; Else alert ("Current node was nothing");});
2.
1, download WDTREEHTTPS://PAN.BAIDU.COM/S/1_IHTEVIO9D5V7R61WVSDPG2,
1, http://www.jq22.com/jquery-info1712,
|
Ylbtech Source: http://ylbtech.cnblogs.com/ This article is copyright to the author and the blog Park, Welcome to reprint, but without the consent of the author must retain this paragraph, and in the article page obvious location to the original link, otherwise reserves the right to pursue legal responsibility. |
Javascript-tool:wdtree