Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to get the selected node items from jquery checkbox tree
    primarykey
    data
    text
    <p>I am using jQuery to generate the checkbox tree, i am not able to get the checked node from tree list. Please help me on this.</p> <p>Here is my code:- </p> <pre><code>&lt;script type="text/javascript"&gt; //&lt;!-- $(document).ready(function() { $('#tabs').tabs({ cookie: { expires: 30 } }); $('.jquery').each(function() { eval($(this).html()); }); $('.button').button(); }); //--&gt; &lt;/script&gt; </code></pre> <h1>jQuery checkboxTree plugin demo</h1> <p>Project Home</p> <pre><code>&lt;code class="jquery" lang="text/javascript"&gt; $('#tree1').checkboxTree({ initializeUnchecked: 'collapsed', collapse: function(){ alert('collapse event triggered (passed as option)'); }, expand: function(){ alert('expand event triggered (passed as option)'); }, check: function(n){ alert('Hi there!!!'+n); }, uncheck: function(n){ alert('Hi there!!!'+n); } }); &lt;/code&gt; &lt;ul id="tree1"&gt; &lt;li&gt;&lt;input type="checkbox"&gt;&lt;label&gt;Node 1&lt;/label&gt; &lt;ul&gt; &lt;li&gt;&lt;input type="checkbox"&gt;&lt;label&gt;Node 1.1&lt;/label&gt; &lt;ul&gt; &lt;li&gt;&lt;input type="checkbox"&gt;&lt;label&gt;Node 1.1.1&lt;/label&gt; &lt;/ul&gt; &lt;/ul&gt; &lt;ul&gt; &lt;li&gt;&lt;input type="checkbox"&gt;&lt;label&gt;Node 1.2&lt;/label&gt; &lt;ul&gt; &lt;li&gt;&lt;input type="checkbox"&gt;&lt;label&gt;Node 1.2.1&lt;/label&gt; &lt;li&gt;&lt;input type="checkbox"&gt;&lt;label&gt;Node 1.2.2&lt;/label&gt; &lt;li&gt;&lt;input type="checkbox"&gt;&lt;label&gt;Node 1.2.3&lt;/label&gt; &lt;ul&gt; &lt;li&gt;&lt;input type="checkbox"&gt;&lt;label&gt;Node 1.2.3.1&lt;/label&gt; &lt;li&gt;&lt;input type="checkbox"&gt;&lt;label&gt;Node 1.2.3.2&lt;/label&gt; &lt;/ul&gt; &lt;li&gt;&lt;input type="checkbox"&gt;&lt;label&gt;Node 1.2.4&lt;/label&gt; &lt;li&gt;&lt;input type="checkbox"&gt;&lt;label&gt;Node 1.2.5&lt;/label&gt; &lt;li&gt;&lt;input type="checkbox"&gt;&lt;label&gt;Node 1.2.6&lt;/label&gt; &lt;/ul&gt; &lt;/ul&gt; &lt;li&gt;&lt;input type="checkbox"&gt;&lt;label&gt;Node 2&lt;/label&gt; &lt;ul&gt; &lt;li&gt;&lt;input type="checkbox"&gt;&lt;label&gt;Node 2.1&lt;/label&gt; &lt;ul&gt; &lt;li&gt;&lt;input type="checkbox"&gt;&lt;label&gt;Node 2.1.1&lt;/label&gt; &lt;/ul&gt; &lt;li&gt;&lt;input type="checkbox"&gt;&lt;label&gt;Node 2.2&lt;/label&gt; &lt;ul&gt; &lt;li&gt;&lt;input type="checkbox"&gt;&lt;label&gt;Node 2.2.1&lt;/label&gt; &lt;li&gt;&lt;input type="checkbox"&gt;&lt;label&gt;Node 2.2.2&lt;/label&gt; &lt;li&gt;&lt;input type="checkbox"&gt;&lt;label&gt;Node 2.2.3&lt;/label&gt; &lt;ul&gt; &lt;li&gt;&lt;input type="checkbox"&gt;&lt;label&gt;Node 2.2.3.1&lt;/label&gt; &lt;li&gt;&lt;input type="checkbox"&gt;&lt;label&gt;Node 2.2.3.2&lt;/label&gt; &lt;/ul&gt; &lt;li&gt;&lt;input type="checkbox"&gt;&lt;label&gt;Node 2.2.4&lt;/label&gt; &lt;li&gt;&lt;input type="checkbox"&gt;&lt;label&gt;Node 2.2.5&lt;/label&gt; &lt;li&gt;&lt;input type="checkbox"&gt;&lt;label&gt;Node 2.2.6&lt;/label&gt; &lt;/ul&gt; &lt;/ul&gt; &lt;/ul&gt; </code></pre> <p>Please do help me on this.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload