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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T16:32:34+00:00 2026-06-15T16:32:34+00:00

I learned that how to dynamically add input fields to a form by using

  • 0

I learned that how to dynamically add input fields to a form by using jquery append.
My question is: How can read these fields? for example: I want from my visitor to enter a number and I for each number create an input, how read it when I don’t know about name of fields and number of them?
And an important problem is how can I naming them. please help me

  • 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-15T16:32:35+00:00Added an answer on June 15, 2026 at 4:32 pm

    We can do naming and reading fields that create dynamically
    these is your answer:

    <div>
         <input type="radio" id="radio_1" name="radio1" value="1" /> 1<br />
    </div>
    

    and in Js:

    for(i=2;i<=8;i++){
        $("div")
            .append($("#radio_1")
            .clone().attr({"id":"radio_"+i,"value":i}))
            .append(" "+i+"<br />");
    }
    $(":radio").click(function() {
        var radioID = $(this).attr("id");
        alert("by selector (:radio): " + radioID);
    });
    
    $("input[name=radio1]").click(function() {
        var radioID2 = $(this).attr("id");
        alert("by groupname: " + radioID2);
    });
    

    you and commentators can see it in jsfeedle

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

Sidebar

Related Questions

I've just recently learned how jquery can access dynamically generated content, by placing a
While I was trying to refresh page contents dynamically using Ajax/JQuery, I have learned
I've learned that I can locate files bigger than X megabytes using: $ find
I learned that Xcode can compile c code, that means can we write whole
I've learned that MySQL can compress communication between servers and clients. Compression is used
When I learned CGI I learned that any programing language can be used to
I have a question about Beanshell that I can't find an answer to anywhere.
As I learned so far, client-side AJAX script can read a static .json or
I learned that class fields are stored in the heap, but where are methods
I learned that using a reference variable is faster than using $() every line

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.