How to dynamically create/remove elements and allow model binding to kick in?
I've done this in the past, and i may have to do it again, but before i do, i want to throw it out there to see how people handle it. Razor view: <ul> @Html.EditorFor(model => model.Questions) </ul> Which could produce: <ul> <li><input type="text" id="Questions_0__Title" name="Questions[0].Title" value="hi"/></li> <li><input type="text" id="Questions_1__Title" name="Questions[1].Title" value="hi2"/></li> <ul> Pretty dead simple. Now, i need to allow the user to add, edit or remove any of those "Questions". For Edit, it's easy - no work req'd. But for add/delete, if i were to do it with jQuery,