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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:32:17+00:00 2026-06-08T17:32:17+00:00

var values = []; $(‘#Route1 td’).each(function () { // values.push($(this).text()); values.push($(this).html()); }); In the

  • 0
var values = [];

            $('#Route1 td').each(function () {
                //  values.push($(this).text());

                values.push($(this).html());

            });

In the above code I am trying to load all columns from a table into an array. However, one table cell of each row has an input box in it. How can I load the actual value of the textbox instead of loading the whole html .

The cell looks like as below.

    "<td><input type=text id=text1 value="I am input"/></td>"

The other problem I have is, even though I changed the value in the textbox, when I retrieve it from JQUERY it remains the same when the page is loaded the first time and does not take the latest value of the input box. Please help!

  • 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-06-08T17:32:19+00:00Added an answer on June 8, 2026 at 5:32 pm

    I found my answer in following

        $(".start").keyup(function(){
            $(this).closest('tr').find("input").each(function() {
                 alert(this.value)
            });
        });
    

    Although I ended up using a completely approach where I have links in my table and once clicked a popup with textbox appears and send value to the table data.

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

Sidebar

Related Questions

This code is giving me objecxt.HTMLInputElement in jquery var values = $('input[name=delete]:checked').each(function(i, selected) {
$.fn.fieldValues = function(successful) { var values = {}; this.each(function() { if(strstr(this.name, '[]', true)) {
Given I have: $(a.clickable).livequery('click', (function (e) { var values = $(this).attr('id').split('_'); $('#' + values[3]).load($(this).attr('href'));
The following code does not submit the input values: $('.button').live('click', function() { var date
The following is the code: function compare(value1, value2){ return (value1-value2); }; var values =
I found this online: var x = 0; // count for array length $(input.placeholder).each(function(){
I am using the following code to submit different values var evalue= 'color:#d32;font-size:12px;'; jQuery.ajax({
I'm working with a web service that will give me values like: var text
myList contains the following values: value1 value2 value3 function showArray() { var txt =
I've always done this to assign the biggest of two values to something: var

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.