Click here to Skip to main content
15,910,773 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a jsfiddle which I have seen off another site.

http://jsfiddle.net/XssCG/307/[^]

It does the job perfectly, but I want to use the same code four or five times. So in one form use this Yes/No drop down list and depending on the answer the other drop lists become available.

Just so it's clear I want the exact same as I have but a repeat of it.

How do I do this?

I've tried so many different ways, I just can't work it out

Thank you
Posted
Updated 16-May-14 4:58am
v2
Comments
Mandip Grewal 16-May-14 12:18pm    
I'm not able to understand that what problem you are facing in this.. You can achieve what you want by add another controls with different ids. Please share more detail about your requirement.

1 solution

So, it executes a function onchange event of the DropDownList and inside that it is trying to enable it.
XML
<select id="mySelect" onChange="check(this);">

You have to follow the same procedure and define the onchange Event Handler for those DripDownLists and do whatever you want to do in that function,
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900