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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:33:42+00:00 2026-05-27T02:33:42+00:00

I am using a drop down list as a navigation option to move between

  • 0

I am using a drop down list as a navigation option to move between pages in a section. I would like the user to be able to select from the drop down list and when they click go, have it take them to the new page.

You can see it in its not-perfected state here.

Here is the html:

<form>
 <label for="new-location">Select a Location</label>
 <select name="new-location" id="new-location">
 <option selected>Please select one</option>
 <option value="http://www.google.com/">Google</option>
 <option value="http://www.search.com/">Search.com</option>
 <option value="http://www.dogpile.com/">Dogpile</option>
 </select>
 <input type="submit" value="Go" />
</form>

Here is the jQuery I have tried. However, it doesn’t work as expected.

<script type="text/javascript">
    $("#new-location").change( function () {
  // simulates similar behavior as an HTTP redirect
  window.location.replace($(this).val());
});
</script>

I would appreciate some assistance in modifying this to work correctly.

  • 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-05-27T02:33:43+00:00Added an answer on May 27, 2026 at 2:33 am
    <script type="text/javascript">
    $(function () {
    
        $("#new-location").change( function () {
        // simulates similar behavior as an HTTP redirect
        window.location.href = $(this).val();
        });
    
    });
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose I have a drop-down list like: <select id='list'> <option value='1'>Option A</option> <option value='2'>Option
trying to select next option drop down list by using a id identifier, but
I'm using classic asp, I have a drop down list that the user selects
I am using a drop down list in my MVC app to select from
I have a drop down list like so: <%= Html.DropDownList(SoldTo, Model.SellDealerList, Select a Dealer)%>
i currently have an empty drop down list that I would like to fill
using a drop-down list that's populated from database fields, i need to select an
I have one drop-down list (<select> <option>) on page with id="coclevel1" . If current
I am using a Drop Down List for selecting some options. Everything works fine,
I created drop down list using java. But i am not aware of creating

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.