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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T20:15:01+00:00 2026-05-22T20:15:01+00:00

I’m facing a troubles around jQuery and HTML elements. Let’s to the Artists: <table

  • 0

I’m facing a troubles around jQuery and HTML elements.
Let’s to the “Artists”:

<table id="tableBenef" width="375px">
     <tr style="border-bottom: solid 1px silver;">
         <td style="width: 10%"> Action </td>
         <td style="width: 45%"> Nome   </td>
         <td style="width: 20%"> Data Nasc </td>
         <td style="width: 25%"> Grau Parent </td>
     </tr>
</table>

This above is the Table Header and Inside of it I add dinamically new Rows. Each row contains a Checkbox and three more TDs, also I have three text inputs which I send each of one to the referent TD, the checkbox is for Delete purposes.

The question is, How to Get those new values inserted dinamically with jQuery?!
I started with this code below:

 function getRowValues() {
            var table = $("#tableBenef");
            $(table).each(function () {
                alert($(this).text());
            })
        };

But I’m facing trouble with that, could someone help me on this?

In negative case, thanks anyway!
Sorry for any mistake.

  • 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-22T20:15:02+00:00Added an answer on May 22, 2026 at 8:15 pm

    Cheap solution: don’t get them back from the HTML at all. Instead, before inserting each row into the HTML, store that row’s values in an array. Then, just read the array rather than having to go all the way back through the DOM.

    As requested, here is some very basic code for how you’d go about doing this. (Obviously, this is just code to illustrate the general idea, since I don’t know your actual setup.)

    var insertedRowData = [];
    
    function insertRow(rowValues) {
      // I'm assuming that rowValues is in the form {key1: "value1", key2: "value2"}.
      // That sort of generic object is probably a good format for storage,
      // but it doesn't matter what format you use, so long as it is a single object
      // that can be stored now and accessed later.
    
      insertedRowData[insertedRowData.length] = rowValues;
    
      /*
        ...
        Insert the row into the table, like you're already doing.
        ...
      */
    }
    
    function handleRowValues() {
      // Hey, look! All of the data is still stored in insertedRowData.
      // I can now handle it in whatever way I want. I think I'll log them
      // to Chrome or Firebug's console, but you can do whatever you want here.
    
      console.log(insertedRowData);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
i got an object with contents of html markup in it, for example: string
I have thousands of HTML files to process using Groovy/Java and I need to
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on
I'm working with an upstream system that sometimes sends me text destined for HTML/XML

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.