c# - MVC3 dynamically update a div with a child action on control event -
currently have main view composed of several partial views this:
...
some of partial views, rendered using html.renderaction , @sections.
now 1 of page has tabular data view record list. want add dropbox has number of records displayed , on change of dropbox want trigger request re-render partial-view list. possible?
regards, czetsuya
include partial view in div. assign event dropbox using jquery make ajax call update div onsuccess see: http://www.9lessons.info/2010/08/dynamic-dependent-select-box-using.html in example though use
$(".city").html(html);
i prefer name element name="city" , instead do:
$("#city").html(html);
Comments
Post a Comment