Solved

JS, hide/show div based on dropdown selection

Posted on 2013-01-04
3
572 Views
Last Modified: 2013-01-04
Hi,

I'm trying to display divs based on a standard html dropdown selection.
I have several div's on the same page, that needs to be visible/hidden, based on dropdown selection.

This is what I have, but it only work on the first two textarea, why does it not work on the last example?

http://jsfiddle.net/JDCW8/
0
Comment
Question by:kgp43
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 38745524
test page : http://jsfiddle.net/9Q5nY/

ID attribute must be unique in a page
Use NAME attrubute instead
0
 

Author Comment

by:kgp43
ID: 38745676
Seems to work, thanks a lot :)
0
 

Author Closing Comment

by:kgp43
ID: 38745694
Perfect :D
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

632 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question