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

  • Home
  • SEARCH
  • 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 6729393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:17:05+00:00 2026-05-26T10:17:05+00:00

i am doing this: if ($(this).prop(‘checked’)) { var checkText = $(this).next(‘a’).text(); to get the

  • 0

i am doing this:

 if ($(this).prop('checked')) {
                var checkText = $(this).next('a').text();

to get the node text of one of the nodes in my treeview

here is the HTML source:

<a class="TreeView1_0" href="javascript:__doPostBack('TreeView1','sPreAnalytical\\Labels\\GoodStuff')" onclick="TreeView_SelectNode(TreeView1_Data, this,'TreeView1t2');" id="TreeView1t2">Specimen collection device mislabeled/unlabeled by practice</a>

the jquery line above returns:

Specimen collection device mislabeled/unlabeled by practice

however i need to return:

GoodStuff

how do i do it?

please note that i do not always have \\Labels\\ in the text

what DOES stay constant is this: href="javascript:__doPostBack('

if it’s much simpler i am even happy returning this:

javascript:__doPostBack('TreeView1','sPreAnalytical\\Labels\\GoodStuff')
  • 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-26T10:17:05+00:00Added an answer on May 26, 2026 at 10:17 am

    How about the code below or something similar?

        var hrefValue = $(this).next('a').attr('href');
        var trimIndex = hrefValue.lastIndexOf('\\') + 1;
        var checkText =  hrefValue.substr(trimIndex, hrefValue.length - 2);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

im doing this simple for and i get this error. When i change TRUE
I have some code doing this : var changes = document.getElementsByName(from); for (var c=0;
I'm probably doing this all wrong. I have a text file full of data
Doing this: @resp = Net::HTTP.get_response(api.something.com, /feed/v1/offers.json?#{@params_api_string}) I get this response in @resp: #<Net::HTTPOK:0x7f451e9d3ef0> How
This is the scenario: class BaseClass { public virtual string Prop {get; set;} }
I am doing something like this- http://www.w3schools.com/html5/tryit.asp?filename=tryhtml5_video_js_prop but I want to replace the buttons
Im doing this project where i need to download files through a webservice (images,
I am doing this on Fedora Problem: (sandbox)[root@localhost mysite]# django-admin.py runserver Error: Could not
I am doing this first time so I need some help. I am using
I'm doing this system Stacked and I am creating the search function. And in

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.