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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:18:58+00:00 2026-05-23T15:18:58+00:00

This is the code on the script, i need to get the content from

  • 0

This is the code on the script, i need to get the content from the second cell.
The table hasnt got a id but is in a div with the id ‘Chat’

The 4th row i can select:

var row = $("#chat tr:nth-child(4)");

But not the second cell:

var cellContent = $("#chat td:nth-child(4)").html();

I cant post images or table tags, so this is a link to the image of the table and its code.
http://img577.imageshack.us/img577/8871/chattable.png

  • 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-23T15:18:59+00:00Added an answer on May 23, 2026 at 3:18 pm

    Here is a fiddle that hopefully helps your jquery question. http://jsfiddle.net/CrumK/1/

    $(document).ready(function() {
        // this reads: find the element with ID chat and inside that find every TR element that is the 2nd child of its parent (meaning TABLE).
        $("#chat tr:nth-child(2)").css("color", "blue");  // select the second row
    
        // this reads: find the element with ID chat and inside that find every TD element that is the 2nd child of its parent (meaning TR)    
        $("#chat td:nth-child(2)").css("background", "red"); // select every second TD
    
        // select the second TD of the second TR inside the #chat element
        $("#chat tr:nth-child(2) td:nth-child(2)").css("background", "green");  // select the second row
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have tryed to run this code in my console: script/plugin install git://github.com/apotonick/cells.git ...but
look at this code, <head> <meta http-equiv=Content-Type content=text/html; charset=utf-8 /> <script> function change() {
I am using Radeditor. i need to get the content from clip board and
With this code I can show an animated gif while the server script is
I have a python script the runs this code: strpath = sudo svnadmin create
I have this code in userpage.php: <script langauge=JavaScript><!-- function newWindow(fileName,windowName) { msgWindow=window.open(fileName,windowName); } //--></script>
I have this code to show a map using the Virtual Earth API: <script
Okay, I have this code: <script language=javascript type=text/javascript> <!-- function requestPage(page) { var request
i'm getting dialogue box (Operation aborted) What is the problem in this code? <script
There is some problem, i can't understand anyway. look at this code please <script

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.