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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T05:11:16+00:00 2026-05-18T05:11:16+00:00

This should be easy, but after browsing several libraries (jquery preferred!) and even plain

  • 0

This should be easy, but after browsing several libraries (jquery preferred!) and even plain old javascript, I’m drawing a blank.

In other words, a row with 3 edit boxes, 2 prefilled with type of, say, cheese and pickle, then one unfilled box for a number, and a submit button to the right of that.
Repeat times n rows.

To put it another way:
Imagine a form presented as a series of rows from a search result.
Let’s say there are 8 results, that’s 8 rows. The user can save their choices into any of 100 “slots”.
It’s easy if each row can have a name or letter; I just call each submit button a number, 1 to 8, and when say 6 is pressed, it know it’s row 6 it wants to save. It uses Malsup’s jquery form thing to submit it in an ajaxy way so that the form doesn’t have to be refreshed each time.

But that doesn’t allow free choice of which “slot” that result is saved in. If I could get the submit button to reflect the number in the cell to the left of it, I’d be away.

But I can’t, so I’m not. And I appear to be the only person to do such a nonsense thing.
Any better way?

  • 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-18T05:11:16+00:00Added an answer on May 18, 2026 at 5:11 am

    Let’s assume your submit button is a button element.

    $('table').delegate('button', 'click', function(e) {
    
      var formData = {}
    
      $(this).closest('tr').find('input').each(function() {
        formData[this.name] = this.value;
      });
    
      //Add in your code to ajax it off...
    
      e.preventDefault(); //since buttons/submits behave differently in each browser.
    
    });
    

    //Now you have all your formData in an object. Send it via your Ajax thing.

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

Sidebar

Related Questions

This should be relatively easy to do, but after several hours straight programming my
OK, I'm feeling like this should be easy but am obviously missing something fundamental
I think that this should be pretty easy but I'm not quite sure how
This should be an easy problem but... I need to format a currency for
I think that this should be easy, but I'm not able to get it
I have a quick question should be easy, but need to make it fast
Which version control system would you recommend for: single user looking for simple, easy
i am making an application with login view. This is just simple UIViewController with
I imagine to use XML serialization like this: class Foo { public Foo (string
I have a script where I need to get three parts out of a

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.