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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T00:32:28+00:00 2026-05-30T00:32:28+00:00

I have a 3×3 table. I want to select each td within a specific

  • 0

I have a 3×3 table.

I want to select each td within a specific row. (2nd row for example)

$('table > tbody > tr:nth-child(2) > td').css("background-color","red");

Above code sets only 2nd rows 1st column to red.

I expected it to modify each td in 2nd row but seems i’m missing something.

Why does above code doesn’t work as expected?

(EDIT: I’m using Chrome 13 with jquery 1.7.1)

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

    Chrome seems to be bugged again View this demo in Chrome (observed bug in Chromium 17).

    Instead of > td, you can use .children(), which is equivalent:

    $('table > tbody > tr:nth-child(2)').children().css("background-color","red");
    

    Demo: http://jsfiddle.net/kYZWY/2/

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

Sidebar

Related Questions

I have create in MySQdb a DB with a table named example,in this table
I'm having some problems with join query. What I want is select rows of
I have this table UMS id_attribute value order 1 MB 1 1 Gb 2
I need some help with a query. I have this simple table: CREATE TABLE
I'd like to have my table's headers repeated for every printed page, but it
I have this table called Table1 as follows: UserID Date 1 01/01/09 1 14/01/09
I'm new to triggers . I have table like this CREATE TABLE [dbo].[Positions]( [Id]
in C#,I have a double variable price with value 10215.24. I want to show
Guys, I have a query where basically select the latest browser that our user
I have a table like this: serialnumber partnb id actual nominal 1 1 AGR

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.