JS, hide/show div based on dropdown selection


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?

Who is Participating?
leakim971Connect With a Mentor PluritechnicianCommented:
test page : http://jsfiddle.net/9Q5nY/

ID attribute must be unique in a page
Use NAME attrubute instead
kgp43Author Commented:
Seems to work, thanks a lot :)
kgp43Author Commented:
Perfect :D
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.