HTML & WEB-Design

Moderators: Jonathan
Number of threads: 1253
Number of posts: 3360

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Displaying Div from a list box Posted by luffymcawesome on 27 Oct 2012 at 6:47 AM
Hello Guys... Can you help me a bit on this one

I have a list box which contains 5 items.. I want to display the corresponding div when each item is selected at the same time hiding the other Divs..

Here are my codes:


<div id="drpTreatment">
  <select name="Treatment" size="5" class="AbsWrap" >
    <option>Thai Massage</option>
    <option>Scrub</option>
    <option>Facials</option>
    <option>Stone Massage</option>
    <option>Relaxation</option>
  </select>
</div> 

<div id="thaimassage">The best thing about Thai massage is that, like yoga you get flexibility, inner organ massage, oxygenation of the blood and quieting of the mind. Through deep muscle stretching, joint release and emphasis on the breath, Thai massage offers many of the same benefits as
yoga</div>

		<div id="facial">A facial is a spa therapy that leaves your skin cleaner, softer, younger, and truly transformed. Your skin is the body’s largest organ and a direct reflection of internal wellbeing. Facials can clear clogged pores, quench parched skin and remove dead cells.</div>
       
       <div id="scrub">Body treatments are essentially a facial for your whole body. It is just as important to cleanse, exfoliate, and hydrate the skin on your body as it is the skin of your face.</div>  
       
       <div id="stone">The stones are used in two ways during the massage. One is to impart heat onto the body by laying stones under the client with a layer of fabric between the client and stone (a sheet or towel) and/or on top of the client, again upon a towel. Stone layout typically will be along both sides of the spine, or along the chakra centers on top and baseball sized stones would be placed in the hands.</div>
       
       <div id="relaxation">It feels good and it is beneficial to your health. When muscles are stressed, they block oxygen and nutrients, leading to inflammation that builds up toxins in the muscle tissue. A deep-tissue massage helps loosen muscle tissues, release toxins from muscles and get blood and oxygen circulating properly</div>


Something like when you select Thai Massage, you get the information on the Thai massage... This goes on the the rest




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.