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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:21:50+00:00 2026-05-26T19:21:50+00:00

I want to create a form like the one pictured below: I see many

  • 0

I want to create a form like the one pictured below:

enter image description here

I see many ways how to use table, css, lists, but want to know how to best implement what I have pictured. The idea is that “Student(s)” has a Name and Age associated with it and by clicking on “Add Row” link, a new pair of Name and Age fields would appear right under it.

If someone can suggest to me the best way to accomplishing this so that I don’t have alignment problems where the field label is to the left of the input fields, I would greatly appreciate it. I know it would be simple with tables, but wanted to see if there is a tableless solution suitable for the modern age of HTML5/CSS3.

I went off of this
http://net.tutsplus.com/tutorials/html-css-techniques/how-to-build-cross-browser-html5-forms/

But had problems tweaking it to look like what i pictured above. If someone can help show me how to best achieve this, I would greatly appreciate it.

  • 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-26T19:21:51+00:00Added an answer on May 26, 2026 at 7:21 pm

    If you use this script:

     var lastUsed=0;
    
    function addGroup()
    {
       lastused++;
       namstr='StName'+lastused;
       agestr='StAge'+lastused;
       str='<div> Name: <input type="text" name="'+namstr+'" value="">
       Age: <input type="text" name="'+agestr+'" value=""></div>';
       document.getElementById('formBlock').innerHTML+=str;
    }
    

    With this HTML:

    <form name="myform" action... etc>
    <div id="formBlock">
        Class Name: <input type="text" name="clName" value=''>
        <div> Name: <input type="text" name="StName0" value="">
        Age: <input type="text" name="StAge0" value=""></div>
    </div>
    <textarea>....etc
    
    </form>
    

    It should add them just fine. I didn’t include any styling because we don’t have a page layout. The styling should be trivial.

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

Sidebar

Related Questions

i want to create a form that has two submit buttons, but each one
I want to create a search bar like one in this page http://dl.dropbox.com/u/333492/search/form.html If
I want to create a form, but just use it to keep an image.
I create form dynamically on the client side. I want to iterate it, but
hey guys i want to create one display form in which at the bottom
I want to create a form which has a text entry box where a
I want to create a form in which if the User presses Enter the
I want to create an input form that will take the input text and
I am new In ASP.NET, I want to create to Login Form using Membership
I want to create a simple user registration form with First / Last name,

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.