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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T03:43:18+00:00 2026-06-09T03:43:18+00:00

I have 2 dropdown menus, and I need to compose a link with it’s

  • 0

I have 2 dropdown menus, and I need to compose a link with it’s values.

Here is the code:

<form id="dropdown1">
    <select id="linha">
        <option value="G12">Option 1</option>
        <option value="G11">Option 2</option>
        <option value="H89">Option 3</option>
    </select>
    <select id="dia">
        <option value="all">Every day</option>
        <option value="work">working days</option>
        <option value="sat">saturday</option>
        <option value="sun">sunday</option>
    </select>
</form>

I need something in JavaScript to “compose” a link with http://somewebsite.com/*selected_linha_value*/*selected_dia_value*

How can I do that?

  • 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-09T03:43:19+00:00Added an answer on June 9, 2026 at 3:43 am

    Take a look at: http://jsfiddle.net/ERHhA/

    You can use jQuery val() to get the value of the select boxes. Then just append these values to the base url.

    var url = "http://somewebsite.com/" + $('#linha').val() + "/" + $('#dia').val();

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

Sidebar

Related Questions

Here's what I need to write for a bunch of dropdown menus: <select> <option
I need to change form of dropdown. What I have: http://jsfiddle.net/gnEAe/5/ Here is illustration
I have a form with three different dropdown menus, it looks like this: <FORM
Say I have a dropdown menu... <select id=menu> <option value=1>One</option> <option value=2>Two</option> <option value=3>Three</option>
i have a countries, states, cities tables , and I need 3 dropdown menus
I have a dropdown menu and i need help getting the hover link to
I have a form that has a dropdown menu i need the user to
I have a dropdown menu with a couple of values that link to functions.
I have a dropdown menu that is filled by a mysql database. I need
Hi I have two dropdown menus: priceMaximum and mortgageMaximum I want it so if

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.