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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T18:58:04+00:00 2026-06-02T18:58:04+00:00

I have a jQuery jsTree populated from the server via an ajax call. How

  • 0

I have a jQuery jsTree populated from the server via an ajax call. How i can expand node, by node name, not id? e.g. sample node:

[{“attributes”:[],”data”:{“title”:”mynode1″,”id”:”1a051101-c3fa-48f2-b2e1-c60d1b67ea22″},”children”:[{“attributes”:[],”data”:{“title”:”mynode2″,”id”:”26d6cff1-3c7f-4a2f-bf5a-422e08127b43″

how i can expand node, if a know only his name (“mynode1”)?

  • 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-02T18:58:05+00:00Added an answer on June 2, 2026 at 6:58 pm

    Typically you would not want to open a node by the title, but it can be done. If the same title is found more than once, then both will open. Replace the “.jstree” selector with one that is unique to your tree.

    var open_node_name="mynode1";
    $(".jstree").find("a").each( function(index){
        if($(this).text().trim()==open_node_name){
            $.jstree._reference(".jstree").open_node($(this),function(){;},true);
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have jquery with class= modal i want to call that class when page
I have a Jstree populating a list of items. When I click a node
I have jquery script: $(#theid).fadeTo(1000,0.01).getxmo().fadeTo(1000,1); function getxmo(){ $('#output').append('okay!'); } It is not running the
I have jsTree loading data from a JSON page and it displays correctly. I
I am trying to access an xml file suing jquery and ajax call. I
I have Jquery Form plugin but i do not have submit button in my
I have been playing with jstree (1.0rc2)+jquery (1.4.2) for the first time with c#.net
I have a jstree JQuery pluguin that I use with its checkbox plugin. I
I have jQuery slider code that I want to populate via a JSON url.
I have jquery ajax() function: $.ajax({ type: POST, url: 'ajax.php', data: 'url='+variable, success: function(data){

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.