title: jstree: how to start a jquery script by clicking an anchor
body: <p>I try many things, but nothing works. Is there a way to run a jQuery script by clicking on a jsTree anchor?</p>
  
  <pre class="lang-js prettyprint-override"><code>$(document).ready(function() {
    $('.jstree-anchor &gt; a').click(function() {
      var hidden = $('.index_right');
      if (hidden.hasClass('visible')) {
        hidden.animate({
          "right": "-1000px"
        }, "slow").removeClass('visible');
      } else {
        hidden.animate({
          "right": "0px"
        }, "slow").addClass('visible');
        hidden.css('display', 'block');
      }
    });
  });
  </code></pre>