I have the following in my view:
<ul id="statements">
<% foreach (var s in Model.Statements)
{ %>
<%Html.RenderPartial("StatementControl", s); %>
<% } %>
</ul>
Now I want to use Ajax to return a new Statements object when user clicks on one of several links:
<ul id="statementChoices">
<li>group1<li>
<li>group2<li>
<li>group3<li>
<ul>
If I use Ajax form how do I tell RenderPartial to render the new collection? How do I go about this? What about using JQUery here?