I’m trying to dynamically add items which are just strings from a textbox to a listbox control.
These strings should be able to be added but also be removed. So that’s why I came up with the listbox control. So i’d need a textbox an add button and the listbox control.
When pressing the submit button, everything in the listbox should be posted to an action in the controller.
How can this be done in mvc 4?
Override the default handling for the submit with jQuery and use .ajax to post the listbox items to your action.