I have two questions:
I am developing a web system in asp.net mvc with jquery and there several registers of documents where each document has multiple authors and I intend to do this in the view (form) of the same document (including several authors like a list) and then to the end (post), save everything in a single transaction. My question is, is there any jquery plugin that facilitates this mechanism on client-side? Or if anyone has an idea of how to develop it?
It’s not a single string list, this list of authors, has about 5 fields (2 combos, second text, a checkbox), need to find a way to climb a complete list of these in the post to persist. How could I take this objects on my Action ?
PS: I can’t use Checkboxes to do this because I’ll have a lot of authors, and the user will select it on a modal with jquery ui.
Thanks
Edits
Sample: jsbin.com/uvajec/2/edit
I dont know if it works fine!
You have two options:
1 – Using normal form submit, just adopting convention names for the inputs of the form. This link explains how you can use the MVC Model Binding to a list.
2 – Using ajax post, sending a complex js object to the server in json format (doesn’t have to be json, but it’s easier). This link shows how you do it.