.2/jquery.min.js&quot;&gt;&lt;/script&gt;
    &lt;script type=&quot;text/javascript&quot; src=&quot;../js/jquery.treegrid.js&quot;&gt;&lt;/script&gt;
    &lt;script type=&quot;text/javascript&quot;&gt;
      $(document).ready(function() {
            $('.tree').treegrid({
            onChange: function() {
                alert("Changed: "+$(this).attr("id"));
            }, 
            onCollapse: function() {
                alert("Collapsed: "+$(this).attr("id"));
            }, 
            onExpand: f