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

I am learning with MVC. I am able to bind simple one dropdown list.
But how can i get selectedindexchanged event in MVC?
How can i bind another dropdownlist from first dropdown selectedindexchaged?
Suppose i have first country dropdown list. I want to bind states on the basis of country.
How can i do this things in MVC?

Please help me....
Posted

1 solution

I would use jQuery to do it client side.

Here is an example of how to use jQuery with a select object. Just modify this to update another select object with an ajax call.

Here is a link to just such a solution: http://www.codeassembly.com/examples/jquerycombo/test.html[^]
 
Share this answer
 
v4
Comments
fjdiewornncalwe 18-Jan-13 11:35am    
+5.

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