ASP MVC Populate drop down list on jQuery add table row

Posted by Jacob Huggart on Stack Overflow See other posts from Stack Overflow or by Jacob Huggart
Published on 2010-04-22T20:20:07Z Indexed on 2010/04/22 20:23 UTC
Read the original article Hit count: 302

Filed under:
|
|
|

I have a page with several drop down lists that all have the same contents. The page starts out with only three ddls, but more need to be added based on user input. There is also other information associated with the drop down lists that is all in a table. So, when the user clicks a link I add a new row of textboxes and drop down lists to a table.

When I add a row to my table, the new drop down lists are empty because there is no view data associated with them. How can I use ajax or jquery to pull the viewdata that I need to populate new drop down lists?

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about jQuery