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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T21:52:01+00:00 2026-05-16T21:52:01+00:00

I have a ASP.Net TreeView Control with Checkboxes along Child nodes. I want to

  • 0

I have a ASP.Net TreeView Control with Checkboxes along Child nodes. I want to get Text of the checked Child Node in the TreeView control. And I want to get the checked Child Node Text using jQuery/JavaScript. Mostly I had used jQuery in the page I had done.

I had used $(this).text(), but its not working. Since the control is ASP.Net TreeView control and I am using jQuery. So either jQuery or 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-05-16T21:52:02+00:00Added an answer on May 16, 2026 at 9:52 pm

    Since you didn’t post a sample of what you’re working with I created an example that tries to cover a few different scenarios.

    <ul id="list">
      <li><input type='checkbox' id="check1" name="check1" value="hello" /> Checkbox #1</li>
      <li><input type='checkbox' id="check2" name="check2" /> Checkbox #2 <a href="#">hello</a></li>
      <li><input type='checkbox' id="check3" name="check3" /> Checkbox #3</li>
      <li><input type='checkbox' id="check4" name="check4"/> Checkbox #4</li>
    </ul>
    
    <button id="output"></button>
    

    On button click…

    $("#output").bind("click", function(){
    
      // can be any jQuery selector -- for this example we use #list 
      $("#list").find("input[type='checkbox']:checked").each(function(){
        var $t = $(this),           // current checkbox
            $p = $t.parent(),       // parent li - define more so w/ parent('li')
            text = $p.text(),       // text of li
            val = $t.val(),         // checkbox value
            id = $t.attr('id'),     // checkbox id
            name = $t.attr('name'), // checkbox name
            children = $p.children("a:first").text(); // select first child anchor element->get text
    
        // insert magical code here...
    
        // print to console for debug
        console.log($t, $p, text, val, id, name, children);
    
      });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a ASP.Net TreeView control that I am binding to an XML data
I have ASP.NET web pages for which I want to build automated tests (using
I have a web application where I am using asp.net tree view control to
I have a asp.net treeview control that I need to be able to set
I have an ASP.NET Page that contains a User control called ReportCtrl (my own
I have a question regarding the ASP.NET 3.5 Treeview and Treenodes. I'd like to
I having an issue with the ASP.NET Treeview control. I create the treeview just
I have asp.net checkboxlist control that bounded to a data source so the number
Greeting, if I have asp.net checkboxlist control : <asp:CheckBoxList id=list1 runat=server> <asp:ListItem>One</asp:ListItem> <asp:ListItem>Two</asp:ListItem> <asp:ListItem>Three</asp:ListItem>
Greeting; I have asp.net dropdownlist control with Ajax CascadingDropDown control. I also I have

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.