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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:48:42+00:00 2026-05-31T20:48:42+00:00

Consider the following HTML snipped: <input type=submit value=Delete selected><input type=submit value=Print selected> <div class=table>

  • 0

Consider the following HTML snipped:

<input type="submit" value="Delete selected"><input type="submit" value="Print selected">
<div class="table">
  <div class="row">
    <span class="cell"><input type="checkbox" name="chose" value="1"></span>
    <span class="cell"><input type="text" name="name" value="Joe"></span>
    <span class="cell"><input type="text" name="age" value="23"></span>
    <span class="cell"><input type="submit" name="save" value="Save"></span>
    <span class="cell"><input type="submit" name="delete" value="Delete"></span>
  </div>
  <div class="row">
    <span class="cell"><input type="checkbox" name="chose" value="2"></span>
    <span class="cell"><input type="text" name="name" value="Jack"></span>
    <span class="cell"><input type="text" name="age" value="42"></span>
    <span class="cell"><input type="submit" name="save" value="Save"></span>
    <span class="cell"><input type="submit" name="delete" value="Delete"></span>
  </div>
</div>

The result is the following document:

enter image description here

I want to crate two forms in such a way that the upper buttons submit the ckeckboxes…

enter image description here

…and the row buttons submit the inputs in the same line:

enter image description here

Although this example has only two lines, I would like to know how to do it to an arbitrary number of rows. Also, the solution should not use JavaScript (even because I know how to do it with JavaScript anyway). OTOH one can rearrange the position of elements and use CSS if not changing the visual result.

So, is it possible to do it?

Note: I am using <div>s instead of <table> so we need not to think about the correctness of using forms inside tables.

  • 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-31T20:48:43+00:00Added an answer on May 31, 2026 at 8:48 pm

    Part of the post information that is sent is the name of the button that was used to submit with the value “Submit”. If you name them accordingly, you can determine which row is to be saved.

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

Sidebar

Related Questions

Consider the following HTML structure: <div class=content> <div class=field field-type-date field-field-event-date> <div class=field-items> <div
Consider the following code : HTML: <div> <label for='name'>Name:</label> <input type='text' id='name' /> </div>
Consider the following HTML table: <table id=myTable1> <tr id=TR1> <td><input type=text id=quantity1 name=quantity1 /></td>
Consider the following HTML : <div class=list> <select> <option value=one>1</option> <option value=two>2</option> </select> And
Consider the following HTML tables: <table id=myTable1> <tr><td><input type=text id=quantity1 name=quantity1 /></td></tr> <tr><td><input type=text
Please consider the following HTML: <input type='text' id='name'/> <option id='option'> <select value='1'>hi</select> <select value='2'>bye</select>
Consider the following HTML: <div class=foo id=obj> I should be changed red <div class=bar
Consider the following html: <div class=image> <img src=sample.png/> <div class=text> Text of variable length
Consider the following HTML : <a id=add herf=#>add</a> <div class=list> <select> <option>1</option> <option>2</option> </select>
Consider the following html: <div id=rightBar> <div class=barElement> <div class=barText><a href=#>Not underlined</a><br /></div> <div

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.