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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T20:00:31+00:00 2026-05-31T20:00:31+00:00

I made the select currency option TH, Eu,USD. If the customer choose THB, the

  • 0

I made the select currency option TH, Eu,USD. If the customer choose THB, the price will show only THB price with multiple price option but when load the page I want the system show default THB price fist when the page load, and then we can change to us or usd later, please advice

                  /******************* JQUERY **************************/

          $(document).ready(function(){
         $('#theSelect').change(function(){
    var string = $(this).val();
    $('.hideStuff').slideUp('fast');
    $('.is'+string+'').delay(320).slideDown('fast');
       });
           });


              /****************** CSS **************************/
          .hideStuff {display: none;}​


          /*************** HTML *************************************/

        <div class="selectContainer">
        <select id="theSelect">
        <option value="">- Select -</option>
        <option value="isTHB">THB</option>
        <option value="isUSD">USD</option>
        <option value="isEU">EU</option>
       </select>
       </div>
      <div class="hideStuff isTHB">3000 THB</div>
      <div class="hideStuff isUSD">50 USD</div>
      <div class="hideStuff isEU">40 EU</div>
  • 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-31T20:00:33+00:00Added an answer on May 31, 2026 at 8:00 pm

    Also you’ll probably have to use jQuery Cookie plugin if you want the previously selected values to be stored temporarily (unless you’re not getting your values from a $_GET or something) You can then load them from a cookie on page load.

    You would implement it onChange:

    $('#theSelect').change(function(){
       var string = $(this).val();
       $.cookie('currency', string);
    ....
    

    And load when page refreshes

    $("#theSelect").val($.cookie('currency'));
    

    Check out https://github.com/carhartl/jquery-cookie

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

Sidebar

Related Questions

I have made a jQuery UI Datepicker script as below to select only Weekends.
I have a multiple select and I made a function to check several parameters,
So I made a query like this global $connection; $query = SELECT * FROM
-edit- nevermind, i made a mistake in my select statement. Update was working correctly.
In a previous question i made Dynamic dependent select menus i posted this example
I made a package which I can use like this: select * from table(my_package.my_function(99,
I've made a div based <select /> boxes to may them work as cross-browser
I made a while loop in php: <?php include_once(connect.php); $search=mysql_query(SELECT * from chat ORDER
I've made a app with two buttons one to select an image from the
I have a view made like this CREATE VIEW PEOPLE AS SELECT CustomerId, CustomerName

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.