Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 578
  • Last Modified:

JS, hide/show div based on dropdown selection

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
kgp43
Asked:
kgp43
  • 2
1 Solution
 
leakim971PluritechnicianCommented:
test page : http://jsfiddle.net/9Q5nY/

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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now