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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T20:19:35+00:00 2026-05-29T20:19:35+00:00

I have a html document that has this structure: https://i.stack.imgur.com/zrOq1.png <- sorry for link,

  • 0

I have a html document that has this structure:

https://i.stack.imgur.com/zrOq1.png <- sorry for link, but I can’t place imeges inside question

I would like to get from my iframe to it inside parent document.

The simplest way would be to give my iframe id, but I can’t do that.

In my iframe I have a selector like this:

$("table.TitleText > tbody > tr > td.TitleText",parent.document)

but it gives me two or three elements in my parent document.

I need to check if this td has text “MY NAME” in it, then do parent 9 times and then get next tr, then div with class ‘contentNode’ and iframe in it.

I know it sounds crazy, but I don’t know how to do it another way :/

I need a selector that will find firsth iframe after TD containing “MY NAME”, so I can change it height

Could anyone help me?

  • 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-29T20:19:40+00:00Added an answer on May 29, 2026 at 8:19 pm

    You can use closest() method to get the td with id “title-bar” and its parent will give the tr which is at 9th parent level from the td containing “MY NAME”(which is what you are looking for). And then next() will give you the next tr and use find() method to get the contentNode within that tr.

    $("table.TitleText td.TitleText:contains('MY NAME')")
    .closest('#title-bar')
    .parent()            //will give the tr
    .next()              //will give next tr
    .find('#contentNode')
    

    Ideally ids should be uinique on the page in that case you can just use id selector to select contentNode div element.

    $('#contentNode');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a large HTML document which has roughly this structure: <div id=a> <!--
Let's say I have an XML document that has this: <keywords> <keyword>test</keyword> <keyword>test2</keyword> <keyword>test3</keyword>
I have an HTML Document that looks a bit like this, only is far
I have an XML document that has a TextBlock that contains HTML code. <TextBlock>
I have an XML document that has HTML tags included: <chapter> <h1>title of content</h1>
I have a RSS/Atom document that has a bunch of <entry> <title>project name</title> <link
I have an HTML document that is using to embed a control. In some
I have an HTML (not XHTML) document that renders fine in Firefox 3 and
I have an <img> in an HTML document that I would like to highlight
I am constructing a large HTML document from fragments supplied by users that 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.