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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:38:32+00:00 2026-05-14T06:38:32+00:00

I understand that you do something like: $(‘form’).append(‘<input type=text name=color-1 value=Hello />’); But I

  • 0

I understand that you do something like:

$('form').append('<input type="text" name="color-1" value="Hello" />');

But I have two questions about it. First off, I don’t want it added to the end of the form, but after the last input in the “color” section. Secondly, where “name=color-1”, I need the one to increment if they want to add more than one input, you know? So that I can process it on the server.

Any ideas?

  • 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-14T06:38:32+00:00Added an answer on May 14, 2026 at 6:38 am

    I guess what you are looking for is the .after() // .insertAfter() function.
    Let’s say you have a DIV with the class “color” within your form, you would do

    $('form').find('.color > :input').last().after('<input type="text" name="" value=""/>');
    

    To add more of those input fields, just add a button or anything else which is capable
    of executing a click event, where you can execute code to insert more inputs.

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

Sidebar

Related Questions

I understand that something is wrong with type convertations, from my perspective this is
I understand that i cannot do something like List<List<string,string>> . So i have to
I understand that a declaration of a delegate is something like this: public delegate
I understand that a typical stack based buffer overflow attack payload looks something like
From the design of Scala's collections I understand that something like: scala> BitSet(1,2,3) map
I understand that storage history is something that is better to keep for vcs
I'm having trouble with something that I understand should function out of the box
I encountered something that I can't understand. I have this code: cout << f1
There is something that I really don't understand with the HttpListener. The code below
I'm beginning and there is something that I don't understand with pointers. I have

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.