 
 			}
 		);
+
+
+		$( "#srch" ).change(function() {
+		  alert( "Handler for .change() called." );
+		});
 	});
 
 
 //tree.insertNewChild(0,1,"New Node 1",0,0,0,0,"SELECT,CALL,TOP,CHILD,CHECKED");
 
 </script>
+
+
+<input id="srch">
+
 
 <div id="treeBox" style="width:200;height:200"></div>
 

		myTree.enableDragAndDrop(true);

		myTree.attachEvent("onDblClick", function(id){
		    // your code here
		    console.log('expand ' + id);


		    $.getJSON("/component/test.cfc",
				{
					method : "getTaxTreeChild",

					queryformat : 'column'
				},
				function (r) {
					for (i=0;i<r.ROWCOUNT;i++) {
						//insertNewChild(var) does not work for some insane reason, so.....
						var d="myTree.insertNewChild(" + r.DATA.PARENT_TID[i]+','+r.DATA.TID[i]+',"'+r.DATA.TERM[i]+'",0,0,0,0)';
						eval(d);
					}
				}
			);
		});


