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 8133105
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T09:30:38+00:00 2026-06-06T09:30:38+00:00

first i explain the context then the problem. I am using jstree to transform

  • 0

first i explain the context then the problem. I am using jstree to transform a list into a treeview, son onPostBack i get a HTML list that the jsTree jQuery code transform into a treeview. I choose to use checkboxes.

Now when i have a post back, i lost all my checked boxes (that is normal) but i want to rechecked them with the same value than the previous one. I save them into session, and i don’t really know how to recheck; i search on Google and found a lot of solution but using Json data binding, i use Html data. So i think that maybe i could just dynamically click on each boxes needed to be checked just after the onload.

I know it’s probably not the proper way of doing that, but i really want to do it for understand a little more Jquery so i could figure after that of a better way.

So i wrote a function that callback the session, and dynamically click on each checked boxe with the correct id. When i put it into a button click, it worked, but i assume it’s because the click is done after the onload. What i want is to use that function, at the onload but after the jstree Jquery have finish to transform the list into a treeview.

I try some method found here without sucess (probably because i’m too newbie on Jquery and allergic to javascript :] .

  • 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-06T09:30:41+00:00Added an answer on June 6, 2026 at 9:30 am

    You should use trigger.

    $('input[type=checkbox]').trigger('click');
    

    You can do this on jstree’s loaded event like so:

    $('element').bind("loaded.jstree", function (event, data) {
        $('input[type=checkbox]').trigger('click');
    }).jstree(...);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have first to explain a little bit my context, then the question: I
Let me explain the context first. There are two databases sitting on two distinct
First, let me explain that I'm using Spring MVC 3.1.1, and Hibernate validation 4.2.0.
Quite new to maven here so let me explain first what I am trying
First let me explain how I currently handle validation, say, for an IPv4 address:
First I will explain what I am trying to do. I am trying to
First let me explain. I have several addresses on the page that I put
First I will try to explain what I want to do. The app loads
first I'm gonna try to explain what exactly I want to do: I have
The first two paragraphs of this page explain that generic views are supposed to

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.