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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:03:25+00:00 2026-06-16T00:03:25+00:00

I have the following form. What I am trying to do is when the

  • 0

I have the following form. What I am trying to do is when the value of rate[] is changed I want to get the value of the changed value and the value of product[] using jquery.

For example: if I change the value of rate[] (from the first row of the table) to 100, I want to get the new value of rate[] ..100 and its product_id[].. 1001

<form id="myform">
  <table>
     <tr>
         <td>Product 1</td>
         <input type="hidden" name="product_id[]" value="1001" />
         <td><input type="text" name="rate[]" value="2" /></td>
         <td><input type="text" name="quantity[]" value="10" /></td>
     </tr>

    <tr>
         <td>Product 2</td>
         <input type="hidden" name="product_id[]" value="1002" />
         <td><input type="text" name="rate[]" value="2" /></td>
         <td><input type="text" name="quantity[]" value="10" /></td>
     </tr>
  <table>
</form>

My JQuery code;

<script type="text/javascript">

  $(":text[name='rate[]']").bind("keyup", function() {

     // What to write here?

 });

Could you please help me to write the jquery code to find out those values?

Thanks 🙂

  • 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-16T00:03:26+00:00Added an answer on June 16, 2026 at 12:03 am

    This should work:

    var productID = $(this).closest('tr').find('input[name^="product_id"]').val();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following form and I am trying to get the value of
I'm trying to capture key-value pairs from strings that have the following form: a0=d235
I have the following code example taken from the code of a Form :
I have the following HTML: <form id=test> <input type=radio value=A name=C1/> <a href=javascript:selectCheckbox('C1', 'A');>
I have the following form code: <input data-color=orange id=vote_color_id_2 name=color type=radio value=2 />Orange <input
I have the following form: <input type=text name=name1 id=names1 class=names value= placeholder=1) Name Here
I have the following php array that gets all values from a form full
I have the following condensed form <form name=thecars> <select name=cars> <option value=mustang>Mustang</option> <option value=pinto>Pinto</option>
I have the following form using radio button: <div class=attributes> <div class=attribute attribute-1 odd>
I am trying to parse JSON of the following form using aeson {field:{name:...}} or

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.