i have a texbox and a treeview. i want the user to search in the treeview by typing in the textbox. i think the best way to do it is using JQuery.
how can i search for a word inside a treeview , color it, and focus on it using JQuery?
a simple example would be great...
i 正在使用ASP树。 我的树木口号是:
TreeNode n = new TreeNode();
n.Text = "scatman";
TreeNode q = new TreeNode();
q.Text = "hehe";
n.ChildNodes.Add(q);
TreeNode q3 = new TreeNode();
q3.Text = "blabla";
n.ChildNodes.Add(q3);
TreeNode t = new TreeNode();
t.Text = "test";
q.ChildNodes.Add(t);
TreeNode n1 = new TreeNode();
n1.Text = "lol";
t.ChildNodes.Add(n1);
TreeNode p = new TreeNode();
p.Text = "daddy";
TreeView1.Nodes.Add(n);
TreeView1.Nodes.Add(p);
TreeNode s = new TreeNode();