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

I had two dropdown box. My requirement is upon selecting a particular value in first dropdown the values in the second dropdown should change.

Just Google/CP Search for 'Cascading Dropdown'.
What you are looking for is populating a second dropdown based on the value selected in first dropdown.

As such, based on tag MVC, have a look at this:
ASP.NET MVC–Cascading Dropdown Lists Tutorial [^]

If you want to use JavaScript, you would need to use XMLHttpRequest (tradition way!): XMLHttpRequest[^]
VJ Reddy 24-Apr-12 8:03am
Sandeep Mewara 24-Apr-12 8:37am
Thanks VJ!
I think All You need is Selecting the value of One drop down and accordingly it fills the data in the second one.
Check It Out here

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