title: Remove node by ID in jstree when button is clicked
body: <p>I'm using <strong>jstree</strong> and I want to delete a specific node by its ID after a click on a button.</p>
  
  <p>This is my tree in html list format:</p>
  
  <pre><code>&lt;div id="testtree"&gt;
      &lt;ul&gt;
          &lt;li id="1" title="ID:1"&gt;&lt;a&gt;Fruits and Vegetables&lt;/a&gt;
            &lt;ul&gt;
          &lt;li id="11" title="ID:11"&gt;&lt;a&gt;Fruit&lt;/a&gt;
                &lt;ul&gt;
                  &lt;li id="111" title="ID:111"&gt;&lt;a&gt;Apple&lt;/a&gt;&lt;/li&gt;
                  &lt;li id="112" title="ID:112"&gt;&lt;a&gt;Banana&lt;/a&gt;&lt;/li&gt;
                &lt;/ul&gt;
              &lt;/li&gt;
            &lt;/ul&gt;
          &lt;/li&gt;
       &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>and this is my button event (I've got several buttons, hence the array):</p>
  
  <pre><code>buttons[0].addEventListener( "click", function( ev ) {
          $("#testtree").jstree("remove", $("111")); 
      });
  </code></pre>
  
  <p>Any ideas what I'm missing?</p>
  
  <p><strong>Update:</strong></p>
  
  <p>I've corrected the typo but it still doesn't work. Here's the complete code, maybe the mistake is somewhere else?</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;jstree test&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div id="testtree"&gt;
          &lt;ul&gt;
              &lt;li id="1" title="ID:1"&gt;&lt;a&gt;Fruits and Vegetables&lt;/a&gt;
                  &lt;ul&gt;
                      &lt;li id="11" title="ID:11"&gt;&lt;a&gt;Fruit&lt;/a&gt;
                          &lt;ul&gt;
                              &lt;li id="111" title="ID:111"&gt;&lt;a&gt;Apple&lt;/a&gt;&lt;/li&gt;
                              &lt;li id="112" title="ID:112"&gt;&lt;a&gt;Banana&lt;/a&gt;&lt;/li&gt;
                            &lt;/ul&gt;
                      &lt;/li&gt;
                  &lt;/ul&gt;
              &lt;/li&gt;
           &lt;/ul&gt;
      &lt;/div&gt;
  
      &lt;button&gt;Remove Apple&lt;/button&gt;
      &lt;script type="text/javascript" src="_lib/jquery.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="jquery.jstree.js"&gt;&lt;/script&gt;
      &lt;script&gt;
  
          $(document).ready(function() {
  
              $("#testtree").jstree({
                  "plugins" : [ "themes", "html_data", "checkbox", "ui" ],
                  "core": { "initially_open": ["1"]}
              });
          });
  
          var buttons = document.querySelectorAll("button");
  
          buttons[0].addEventListener( "click", function( ev ) {
              $("#testtree").jstree("remove","#111");
          });
  
      &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>