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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:26:50+00:00 2026-05-23T15:26:50+00:00

i have a question regarding Jquery <select id=thechoices> <option value=0>Select Box</option> <option value=box1>Box 1</option>

  • 0

i have a question regarding Jquery

    <select id="thechoices">
<option value="0">Select Box</option>
<option value="box1">Box 1</option>
<option value="box2">Box 2</option>
<option value="box3">Box 3</option>
</select>

<!-- the DIV -->
<div id="value"> disabled till you make a choice</div>

while the select menu have the choice Select box i need the div to be shown as a small black screen with the disabled message
once the user change the select menu and choose another option the value div shown the selected option for example Box 1 or Box 2

  • 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-23T15:26:51+00:00Added an answer on May 23, 2026 at 3:26 pm

    Here is a working Example: http://jsfiddle.net/sHqFX/

    <select id="thechoices">
    <option value="0">Select Box</option>
    <option value="box1">Box 1</option>
    <option value="box2">Box 2</option>
    <option value="box3">Box 3</option>
    </select>
    
    <!-- the DIV -->
    <div id="value"></div>
    

    Put this between head tags

    <script type="text/javascript">
    $(document).ready(function(){
        $("#thechoices").change(function(){
    
           if($(this).val() == 0)
           {
               $("#value").html("disabled till you make a choice");
                $("#value").css("background-color","black");
                     $("#value").css("color","white");
           }
            else{
                $("#value").html($("#thechoices option:selected").text());
                $("#value").css("background-color","white");
                $("#value").css("color","black");
            }
        });
    });
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a basic question regarding jQuery. I have a static time-selection box IE:
Again I have a question regarding this plugin: http://t.wits.sg/2008/06/20/jquery-progress-bar-11/ What I want to achieve
I'm an actionscript developer getting into jquery/javascript development. I have a question regarding event
I have read another post/question regarding jquery variables and it was useful but I'm
I have somewhat of a thought question regarding jQuery Ajax. My question is this:
Have a question regarding URL and jQuery. Can I specify URL to tell jQuery
I have one question regarding using JQuery UI tab control in the asp.net mvc
I have a question regarding CSS3 Gradients and a plugin for jQuery called color
I'm using the hoverIntent Jquery plugin and I have a question regarding callback functions.
I have question regarding the SQLAlchemy. How can I add into my mapped class

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.