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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:10:43+00:00 2026-06-03T03:10:43+00:00

In jQuery, how to get multiple dropdowns for each group of handset, for example:

  • 0

In jQuery, how to get multiple dropdowns for each group of handset, for example:

Customer can select more than 1 handset to make an order. Firstly customer will need to select a number of handset from a dropdown (1 to 15).

If they have selected number 5 from a dropdown then 5 groups of dropdrowns should appear like this:

Group One:

Select Phone [Dropdown / load entries via ajax] 

Select Contract Length [Dropdown / load entries via ajax]

Select Contract Plan [Dropdown / load entries via ajax]

Select Additional Addon [Dropdown  / load entries via ajax]

Group Two:

Same dropdowns as above

Other question is, if there an error (validation from PHP) for not filling the form properly – it will redirect back same page but the dropdowns will need to be reselected again. How to make that to work also?

  • 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-03T03:10:44+00:00Added an answer on June 3, 2026 at 3:10 am

    Pretty sure you will have to bring some variable indicating the failure of form completion like into a session or some hidden element in html and then on document load – check for that variable and manually invoke those drop downs.

    OR

    Do not allow to click the submit button and check the validation in javascript. However it won’t be that secure but it would save hassle for both you and the user. I myself would prefer form being checked before clicking submit just to wait a few seconds until the page is reloaded and I face the fact I chose/wrote something wrong.

    OR

    Validate automatically with xmlhttprequest or something similarly working so on submit click, js accesses php file, validates, returns the result and allows submission of data. Won’t be super secure but… You can recheck that with the same php file again (will be caught if someone tried illegitimately pass some data not through form and xmlhttprequest failed to catch it). Would be safest and nicest way for the user.

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

Sidebar

Related Questions

How to get multiple select box values using jQuery?
I have multiple select field each with multiple options. So, by using jquery to
On the form, a customer can create multiple groups. Every group has the same
I am trying to get jquery validate to work on multiple fields. Reason being
I'm trying to make an HTTP GET request using the jQuery get() function, but
hope can help, trying out Jquery clone which seems to work, but I get
I have a HTML select list, which can have multiple selects: <select id=mySelect name=myList
I want to get multiple radio buttons value using Jquery. But now could only
How to get form specific variable value using Jquery. I have multiple form in
How can i open child window in jQuery and get selected values from generated

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.