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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:26:24+00:00 2026-06-11T08:26:24+00:00

I am trying to only manipulate those two TD’s. There are a ton of

  • 0

I am trying to only manipulate those two TD’s. There are a ton of nested tables that are on very old code that cannot be changed.

the table has no class. but the main structure i can see is like this.

<table>
  <tr>
    <td class="nowrap" "bunch of inline stuff"></td>
    <td "bunch of inline stuff">
  </tr>
</table>

that is what I can see. the rest thats inside, i dont really care about but its all nested tables.

I want to be able to change all the “bunch of inline stuff” for ONLY those two td’s but everything I seem to try runs all through the nested stuff.

any help would be appreciated. If you can tell me what I did wrong, that would be great too.

this is everything I have tried already

//$('#main_content_wrapper table:first tbody tr td:nth-child(1)').attr('width','240').attr('id','ezweb_lhr').css('background','lime');
//$("#main_content_wrapper table:first td:nth-child(1)").attr('width','240').attr('id','ezweb_lhr').css('background','lime');
//$("#main_content_wrapper table:first tr:nth-child(1) td:nth-child(1)").attr('width','240').attr('id','ezweb_lhr').css('background','lime');
//$("#main_content_wrapper table tr:nth-child(1) td:nth-child(2)").attr('width','680').attr('id','ezweb_content').css('padding-left','20px').css('background','red');
  • 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-11T08:26:25+00:00Added an answer on June 11, 2026 at 8:26 am

    You can try this

    $("#main_content_wrapper table:first").find("td")
    

    this will give you an array of all elements which are td inside first table, which is inside element with id ‘main_content_wrapper’. Using indexes you can find whether it is first or second. For eg, to access nth td element use

    var nth_elem = $("#main_content_wrapper table:first").find("td")[n-1]
    

    Remember ‘:nth-child’ selector does not work in IE7 and IE8

    Thanks

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello im trying to echo only the 50 letters, but something in my code
I am trying to show only elements that have the title attribute passed to
I'm trying to create some classes that allow me to retrieve and manipulate a
I'm trying to manipulate an unordered list that is powering the Navigation bar of
I'm trying to simulate some code that I have working with SQL but using
I'm having a heck of a time trying to manipulate my reports so that
I'm trying to check that a user of this code runs this program from
I'm very new to Ruby and I'm trying to build a simple function that
I'm trying to only cURL parts of an array generated by a game API.
I'm trying to minify multiple CSS files using preg_replace() . Actually, I'm only trying

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.