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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T18:51:27+00:00 2026-06-02T18:51:27+00:00

I have the index 2 – i.e. 3rd column, (0 – 1st column, 1

  • 0

I have the index 2 – i.e. 3rd column, (0 – 1st column, 1 – 2nd column and 2 – 3rd column), with the selector below I am getting only 1 td from the correct column, however I want all the tds in the index 2, how can I achieve that?

$($(selector).find("td").eq(currentCol)).each(function(i) { 
  Console.log("Left-", currentCol,$(this).width() - diff);
  $(this).css("width", ($(this).width() + diff) + "px");
});

Html:

<table style="width: 170mm; text-align: left;" class="te-tablerenderer"><tbody style="text-align: left;"><tr style="text-align: left;" class=""><td style="width: 64px;"><br></td>    <td style="">          <b>City:</b>        </td><td style="">          <b>City:</b>        </td><td style="">          <b>City:</b>        </td>     </tr><tr style="text-align: left;" class=""><td style="width: 64px;"><br></td>    <td style="">          <b>City:</b>        </td><td style="">          <b>City:</b>        </td><td style="">          <b>City:</b>        </td>     </tr><tr style="text-align: left;" class=""><td style="width: 64px;"><br></td>    <td style="">          <b>City:</b>        </td><td style="">          <b>City:</b>        </td><td style="">          <b>City:</b>        </td>     </tr></tbody>  </table>
  • 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-02T18:51:30+00:00Added an answer on June 2, 2026 at 6:51 pm

    You could loop through each row and grab the td of the col position/index:

    $(selector).find('tr').each(function(){
        var td = $(this).children('td').eq(2);
        //do some other stuff with the td
    });
    

    Where 2 is the col position/index.

    Note: From reading the documentation, the use of the .eq function will only ever return one result, hence why your existing code will only ever affect one element.

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

Sidebar

Related Questions

i am using php 5.2.8 i have index.html, which loads LOAD.PHP from IFRAME. iframe
I have an index view that I want to update automatically as the user
I have my index.php page and just afrer my header i want to include
At current i have an index page which shows values from an XML page
i want to implement a small search engine , i have index page where
I have index on a column, let's say ID (bigint). If I have a
I have index.jsp from which I get the parameters to servlet LoginServlet.java The servlet
I have index page,which contain div section.i want to call different pages into this
I have index.php and use jQuery .load() to load content from load.php. When I
I have my index page which posts a single entry instead of the usual

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.