How to trigger RenderAction from dropdown list selection?
I have an ajax form.
In this form i have 2 drop down lists (Office and Departments) and a "Filter" Button.
When filter button is clicked my ajax form is set to update "content_main" with my new filtered list.
My question is... how can i get Office (when a selection is made) to trigger a RenderAction on the DIV element containing my list of dependent departments (over writing it with a dropdown li开发者_JAVA技巧st of Departments in that office)?
Hope this makes sense,
Thanks in advance for any help, Kohan.I fixed it,
I have an onchange event on my dropdown that fires an ajax call to my PartialViewAction, this returns a partial containing my dropdown list bound to the model i want and then this overwrites my container DIV.html.
job done.
精彩评论