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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:32:48+00:00 2026-06-09T22:32:48+00:00

I have two dropdown boxes in one form – only one option can be

  • 0

I have two dropdown boxes in one form – only one option can be selected from each box. On pressing the submit button of the form, I want to store the values of the options selected in two different variables.

Here is my form:

<form id="form1" method="post">            
    <select id="slt_country" name="country"> 
        <option value="EN" >England</option>
        <option value="SC" >Scotland</option>
        <option value="IR" >Ireland</option>
    </select>

    <select id="slt_zoom" name="zoom"> 
        <option value="IC" >close</option>
        <option value="SC" >far</option>
    </select>
    <input type="submit" Value="submit" >
</form>

And this is what I have come up with so far to retrieve the form:

$("#form1").submit (function(){
    var ctry=  $("select#slt_country").val();
    var zm=  $("select#slt_zoom").val();
});

I’ve been struggling for too long now with something that should be so simple, so decided to ask for help.

  • 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-09T22:32:50+00:00Added an answer on June 9, 2026 at 10:32 pm

    Try again. It should work! 😉

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

Sidebar

Related Questions

I have a form with two text boxes, one select drop down and one
I am using Asp.net dropdownlist in one of my form ..I have two dropdown
I have a form that has a datePicker and two dropdown boxes for the
In my application i have two drop down boxes first box had origin second
I have two dropdown ddlCountry and ddlState and one button Submit. While ddlstate is
i have two dropdown list. first drop down:1 enter code here <form:select path=custName id=custName>
I have the form with selected boxes like below. i need to group the
I have two dropdown lists (one dynamically populated, the other not) that determine the
How can i create a simple aspx page with a dropdown have two enteries
I have a web form with two drop-down boxes, and I'm looking for a

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.