title: How to add click event to jstree's(jQuery plugin) asynchronous list?
body: <p>I want to add click event to <a href="http://www.jstree.com/" rel="nofollow noreferrer">jstree</a>'s asynchronous list items. </p>
  
  <p>The ideal result is: when i click the items in the jstree, the content of the item will be transfered to a sql query as a parameter, and then, the query is executed and display a result set in the same page or in another page.</p>
  
  <p>While I don't know how to implement it. I found the following code in jquery.tree.js. And I think I should modify the event. But i don't know how. Can you see the code and give me some suggestions or guidance?</p>
  
  <pre><code>$("#" + this.container.attr("id") + " li a")
   .live("click.jstree", function (event) { // WHEN CLICK IS ON THE TEXT OR ICON
    if(event.which &amp;&amp; event.which == 3) return true;
    if(_this.locked) {
     event.preventDefault(); 
     event.target.blur();
     return _this.error("LOCKED");
    }
    _this.select_branch.apply(_this, [event.target, event.ctrlKey || _this.settings.rules.multiple == "on"]);
    if(_this.inp) { _this.inp.blur(); }
     event.preventDefault();
     event.target.blur();
     return false;
    })
  </code></pre>
  
  <p>The page code:</p>
  
  <pre><code>&lt;script type="text/javascript" &gt;
      $(function () { 
          $("#async_json_1").tree({
              data : { 
                  type : "json",
                  opts : {
                      url : "twodimen.php"
                  }
              },
              callback:{
                  onselect: function(node,tree){
  
                  }
              }
          });
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>Thanks very much. </p>