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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:49:58+00:00 2026-05-27T13:49:58+00:00

I want to hide the 2nd td inside a tr and, get the value

  • 0

I want to

  1. hide the 2nd td inside a tr and,
  2. get the value of the 2nd td in the future.

how do i get to the value of the 2nd td?

  1. the second td inside a tr which is inside?
  2. the td with a class name “hide”

How could I code this out in Jquery?

I have something like this for starters:

$('#todolist').each(function () {
var $table = $(this);
$('td', $table).each(function () {

---code---
  • 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-27T13:49:58+00:00Added an answer on May 27, 2026 at 1:49 pm

    You can solve all these problems by reading the docs (especially on selectors) and the samples they contain.

    See: http://api.jquery.com/category/selectors/

    And you can play with jQuery very easily using jsfiddle.net as a sandbox. For example, here’s a fiddle I used to prepare answers to your questions.

    Your specific questions:

    I want to hide the 2nd td inside a tr

    Assuming the tr you want is the first one, as opposed to hiding the 2nd td in all of them…

    $('#todolist tr:eq(0) td:eq(1)').hide();
    

    I want to get the value of the 2nd td in the future

    Save off the td in a variable instead of directly executing functions against it. Then you can read the value using .text().

    var secondItem = $('#todolist tr:eq(0) td:eq(1)');
    secondItem.hide();
    var value = secondItem.text();
    alert(value);
    

    how do i get to the value of … the td with a class name "hide"

    jQuery uses CSS selector syntax. Use the CSS selector for IDs.

    var value = $('td.hide').text();
    

    As for Question B1, "how do i get to the value of the 2nd td? the second td inside a tr which is inside?", I don’t understand what you’re asking…

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

Sidebar

Related Questions

I want to hide a physical file (eg: Sample.abc) which is generated at runtime.This
I have these following code in which I want to enable 2nd hover state
I want to hide text which is in <span> . but why it's not
I want to hide the page number which appears at the page footer while
ok, So I have multiple divs(7) which I want to toggle for show hide.
I want to hide certain columns of a HTML template with JavaScript. Could anybody
I want to hide all blocks which only contain hidden DIVs (aside from a
the jquery code is like this: $(document).ready(function() { //When page loads... $(.tab_content).hide(); //Hide all
I want to hide a label if the labels text value is empty. I
i want to hide a div with class 'picture' if selected is User Profile

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.