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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T00:31:31+00:00 2026-06-11T00:31:31+00:00

Ive set up a fiddle here at JSFiddle ! My quetions is how do

  • 0

Ive set up a fiddle here at JSFiddle!

My quetions is how do is use the the name of my input to traveserse up to the nearest TH, and get its content? In the fiddle case “www.sverigemotrasism.nu” should be fetched.

I have tried and tried many different solutions, getting a little closer each time.. But now im out of options, at least that’s what I think!?

Take a look and if you know a how to solve it I would be really glad to hear how 😉

  • 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-11T00:31:32+00:00Added an answer on June 11, 2026 at 12:31 am

    Since TH is not actually a parent of the INPUT but a higher-level sibling of the parent TD, I used .closest() to find the parent TR, then down to the target TH:

    <script>
            var texten = $('#sverigemotrasism').closest('tr').find('th').text();
            alert(texten);
     </script>
    ​
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I got a CSS question related to this fiddle: http://jsfiddle.net/r584e/ Here the relevant screenshot
Here is the Fiddle . So I've set up this little example of what
I've went all out on the Fiddle here so that you get (most of)
I've put it up in a fiddle: http://jsfiddle.net/6kq2r/ I'm trying to set a min-width
Here's a Fiddle for what I'm about to discuss. I have three input boxes
Ok. I've tried for hours to get this, but no luck. Here's my fiddle:
Ive set my fonts specifically as follows * {font-size: 1em;} html {font-size: 125%;} body{font-size:
How can I manually set a position with some code? Ok Ive got some
I’ve set up a private NuGet Gallery from github.com/NuGet/NuGetGallery using instructions from here: http://dotnet.dzone.com/news/how-set-local-nuget-gallery
Im trying to use some jquery to scroll some content on a portfolio gallery.

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.