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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T22:04:56+00:00 2026-06-06T22:04:56+00:00

I have one drop down list in my page, which contains two options. What

  • 0

I have one drop down list in my page, which contains two options. What i want is, when user select second value in drop down list, another page should load. that means how to switch page on clicking on of the drop down box values.
for help i am putting my html code of drop down list.

        <select id = "viewList" class="fl width160">
            <option>Target</option>
            <option>Source</option>
        </select>

so now when user click on source option, another js page should open. and how should i write coding for that in a .js file(Jquery).

  • 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-06T22:04:58+00:00Added an answer on June 6, 2026 at 10:04 pm

    Look you need to change your html code like this

     <select id = "viewList" class="fl width160">
            <option value ="Target">Target</option>
            <option value ="Source">Source</option>
        </select>
    
    $("#viewList").change(function() {
            if( $("#viewList").val =='Target')
        {
            _loadTargetList();
        }
        else
        {
            _loadSourceList();
        }   
    });
    

    Here _loadTargetList and _loadSourceList both are the functions which will provide the location to load their html file or js files. Here is an example how to load html or js file
    If you want to call js first then html through js then go for this one

    codeLoadingMgr.loadInclude( path + '/Target.js', function() {
    codeLoadingMgr.getHTML(path + '/Target.html', function(html) {
    });
    });
    Other wise you can direct load the html also.
    

    Hope this helps.

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

Sidebar

Related Questions

I have two Drop Down Lists, the second ones are based off which one
I have a page, it has a drop down list, which contains the names
I have a form with two text boxes, one select drop down and one
I have a form on my page which contains two select dropdowns. The first
I have an iframe which contains a few select drop-down lists for data entry.
I have two drop down list in my webpage and one is dependent on
Here's the situation I have a webpage which has one drop down called prefer.
i have a drop down list contains the name of reports and each report
On my index page, I have a drop down list that, when clicked, sends
I have a drop down list (ddlAccount) which i can choose an item from

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.