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

The Archive Base Latest Questions

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

<form action=blah> <table>…</table> <table> <tr>…</tr> <tr> <td>…<td> <td> **some text that changes** </td> Given

  • 0
<form action="blah">
  <table>...</table>
  <table>
     <tr>...</tr>
     <tr>  
         <td>...<td>
         <td> **some text that changes** </td>

Given the above html structure, how do i get the text that changes , using jQuery

So i want jquery to search like this:
-look for form that has atrribute action=”blah”
-select the 2nd table of the form
-select the 2nd row (tr) of the table
-select the 2nd cell (td) of the row
-give me the text

This will help me greatly understanding jquery… i’m new to it.

Something like $(‘form[action=”blah”]’).tables(2).rows(2).cells(2).text but this is not a valid jquery match

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

    So you want the second table cell in the second table row of the second table? The eq function can make this easy

    DEMO

    var text = $("table:eq(1) tr:eq(1) td:eq(1)").text();
    

    Also note that you didn’t close this table cell correctly:

    <td>...<td>
    

    should be

    <td>...</td>
    

    EDIT

    If there are other tables on the page, and you want to make sure you get the second on in the form, then add the form to your selector:

    var text = $("form[action='blah'] table:eq(1) tr:eq(1) td:eq(1)").text();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a block of html code that includes some form action stuff, which
Given some typical search form, I can't construct this form action when submitting a
I have an HTML form with some radio buttons like these: <form action =
lets say I have this form <form name=myform action=/acms/test/multiselect/blah action=GET> <select name=mytextarea[] multiple=multiple> <option
I'm trying to build a simple HTML table form that displays values from a
I have a form action that needs to have its value set from a
i have form action file in another directory but some file send to this
it it possible to get the form action of a GET form on submit
I have a create action for a form that potentially generates errors (i.e. first
I have two questions regarding to html table layout. First I will provide some

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.