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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:15:05+00:00 2026-06-03T09:15:05+00:00

In my page, I have a combo box with an add button. How do

  • 0

In my page, I have a combo box with an add button. How do I create a new combo box below the original combo box when I clicked the add button? If clicked again, it will produce another combo box. The value inside each combo box is called from the database.

  • 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-03T09:15:06+00:00Added an answer on June 3, 2026 at 9:15 am

    Here’s an example, though you’ll have to work out the middle tier and back end portion yourself.

    Example: http://jsfiddle.net/9hvbt/3/

    JavaScript

    $('#btnAdd').click(function(){
        //Use Ajax to talk to your server (middle tier)
        $.ajax({
            url: '/echo/json/', //Replace with your URL to return Database data (JSON format)
            dataType: 'json', 
            type: 'get', 
            success: function(data){
                //Use the returned data to pass into CreateDropDown (Hard coded for an example)
                CreateDropDown(["Item 1", "Item 2", "Item 3"]); 
            }
        });
    }); 
    
    function CreateDropDown(data){
        var $newSelect = $('<select />'); 
        $.each(data, function(i, val){
            $newSelect.append($('<option />', {
                'text':val
            }));            
        });  
        $newSelect.appendTo('#dropDowns'); 
    }
    

    ​
    ​
    HTML

    <div id='dropDowns'>
        <select>
        <option>Item 1</option>
        <option>Item 2</option>
        <option>Item 3</option>
        </select>
    </div>
    <input type='button' id='btnAdd' value="Add" />​
    

    EDIT

    You should also read up on jQuery’s AJAX method

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

Sidebar

Related Questions

I have a combo box and a datagrid in my page. when the user
In my jsp page i have one text box and two combo box. An
I have a webpage with a combo box on the page which is loaded
I have a combo box(drop down list) and a text field on the page.
I have a page where my combo box has hundreds of elements which makes
I have a combo box which displays item quantity. Based on item quantity selection
I have a dynamic combo box which has the URL as the value. I
I have a Silverlight Page where i have the a button control and a
I currently have 3 combo boxes containing values which apply styles to the page
i use google map in my newest project ,and i have a combo box

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.