Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8403057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:14:35+00:00 2026-06-09T22:14:35+00:00

I have a jstree JQuery pluguin that I use with its checkbox plugin. I

  • 0

I have a jstree JQuery pluguin that I use with its “checkbox” plugin. I need to select checkbox programmatically and disable checkboxes, also programmatically.

How I can do that?

https://groups.google.com/forum/?fromgroups#!topic/jstree/wLokkEg3eCY%5B1-25%5D this I tried ind got no result.

My Jstree:

 var myTree = $(tree).jstree({
    "json_data": {
        "ajax": {
            type: "POST",
            async: true,
            "url": urlTree,
            // data: '{"longnames":"' + flag + '"}',

            data: function (n) {
                id = n.attr ? n.attr("id") : prefix + '0';
                reply = '{ id: "' + id + '"';
                //  if (dataJSON.length > 0) {
                //      reply = reply + ", " + dataJSON;
                //  }
                reply += ', longnames: "' + flag + '"';
                // reply += ", prefix: ";
                //  reply += (mutateIds != 1) ? '' : '"' + prefix + '"';
                reply += "}";

                return reply
            },
            contentType: "application/json; charset=utf-8",
            dataType: "json",
            cache: false,
            success: function (msg) {

                return msg.d.data;
            },
            error: function () {
                // process error of ajax
                return false;
            }
        },
        //  "xsl": "flat",


    },
    "search": {
        "show_only_matches": true,
        "search_method": "jstree_contains"
    },
    "types": {
        "max_children": -2,
        "max_depth": -2,
        "default": {
            "valid_children": ["default"],
            "select_node": function (e) {
                this.toggle_node(e);
                return false;
            } 
        },
        "disabled" : { 
                  "check_node" : false, 
                  "uncheck_node" : false 
                }  
    },
    "cookies": {
        "save_opened": false
    },
    "checkbox":{
         "override_ui": "true",
        "real_checkboxes": "true"
    },
    "plugins": pluginsToUse
})
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T22:14:37+00:00Added an answer on June 9, 2026 at 10:14 pm

    To check the node programmaticlly all you need to do is:

    $('#tree').jstree('check_node','#id');
    

    Here #id is the id of the node.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Started playing around with jQuery and the jsTree plugin yesterday, and have it successfully
I'm trying out jstree, the jquery plugin to create a treeview. It works fine,
I am using this new jQuery plugin called jsTree www.jstree.com and using the HTML
I have a Jstree that holds a lot of nodes, some of them have
The JStree plugin for jQuery allows you to load data to feed a navigable
I have a nice jstree that loads data and so on - now I
Basically, I have a jsTree, and I need to format it's li and a
I am currently using jquery, and jstree plugin to show images. I am building
So I have a jstree that looks like this: Root -1 -2 --2.1 ---2.1.1
I have been playing with jstree (1.0rc2)+jquery (1.4.2) for the first time with c#.net

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.