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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T05:22:27+00:00 2026-05-21T05:22:27+00:00

We have a new website developed by a outside company that we are having

  • 0

We have a new website developed by a outside company that we are having issues with. I am trying to figure out the logic on a piece of code that would pull up a new page if some requirements are met.

First of all this is the site http://www.winstonind.com/service

For any servicer in the US it pulls up a Google map and the locations of our servicers for any other options in the drop-down it doesn’t do anything. what I would like to know is how I would make is so if china is selected it would go to a page I created with the list of servicers from that region can you help me with this? I don’t understand alot of Javascript yet and I cant tinker alot since the site is live.

<script type="text/javascript">
                $("#country").change(function(){
                    $(this).val()!='default'?$("#state").hide():$("#state").show();
                });
                var typeChoice;
                $("#step1next").click(function(){
                    typeChoice = $(".mt:checked").val();
                    $(".step.1").removeClass('selected');
                    $(".step.2").addClass('selected');
                    $(".step.1 .sContent").slideUp();
                    $(".step.2 .sContent").slideDown();
                });
                $("#step2next").click(function(){
                    if(typeChoice == 'type1')
                    {
                        $("#mapResult").html('<p style="text-align:center; margin-bottom:5px;">For all service requests that are in-warranty please contact Winston Industries directly.</p><p style="text-align:center;">Toll free: 1-800-234-5286<br/>International: +1-502-495-5400</p>');
                    }else{
                        $("#mapResult").html('');
                        var zip='';
                        $("#state").val()==$("#state").attr('default')?zip='':zip=$("#state").val();

                        //to make distance dynamic, replace 50 with a dynamic value
                        $.post('service/getMap/'+zip+'/50',function(data){
                            $("#mapResult").html(data);
                        });
                    }
                    $(".step.2").removeClass('selected');
                    $(".step.3").addClass('selected');
                    $(".step.2 .sContent").slideUp();
                    $(".step.3 .sContent").slideDown();
                });
                $(".sContent").hide();
                $(".selected .sContent").show();
            </script>   
  • 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-21T05:22:28+00:00Added an answer on May 21, 2026 at 5:22 am

    Add the following before your closing and modify the url to point to the correct directory and url.

    if($('#country').val() == 'china'){
        window.location = 'http://www.yourdomain.com/chinaServicesPage';
    }
    
    
    if($('#country').val() == 'canada'){
        window.location = 'http://www.yourdomain.com/swedishServicesPage';
    }
    
    </script>
    

    This is what your select box code looks like:

    <select name="country" id="country">
                            <option value="default">United States</option>
    
                            <option value="canada">Canada</option>
    
                            <option value="china">Greater China</option>
    
                            <option value="asia_excluding_china">Asia (excluding Greater China)</option>
    
                            <option value="europe">Europe</option>
    
                            <option value="latin_america_and_the_caribbean">Latin America and the Caribbean</option>
    
                            <option value="middle_east">Middle East</option>
    
                            <option value="africa">Africa</option>
    
                            <option value="southernpacific">Southern Pacific</option>
    
                            <option value="united_states">United States</option>
    
                        </select>
    

    You will notice that the “id” in the first line is called country. so we want to read the value that the user has placed in the select box of country which could be canada, china, USA, etc…

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

Sidebar

Related Questions

I have a CakePHP website that's been working great. I just developed a new
I have a new website that is linked to from many places but the
I have a new version of my website that I'm ready to golive. This
I am new to solr. I have developed a an website which uses solr
I have to support a website developed in umbraco. I am totally new to
We have developed a system that uses a single code base, consisting of four
Hi i'm new to codeigniter. I have developed this website using CI. http://maxmovies.in/fattto Now
I have a new Joomla (2.5) site that has been developed on a different
I have developed simple website using Tomcat and Java. Now I'm trying to add
I have developed a website in asp.net mvc that reads from a xml-file to

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.