$("#showchecked").click(function(e){ var s=$("#tree").getCheckedNodes(); if(s !=null) alert(s.join(",")); else alert("NULL"); });
$("#showcurrent").click(function(e){ var s=$("#tree").getCurrentNode(); if(s !=null) alert(s.text); else alert("Current node is nothing"); });