jQuery Dynamiclist for MVC
A jQuery plugin for ASP.NET MVC that supports adding and removing items from a list with ajax.
Installation
Install with npm:
> npm install jquery-dynamiclist
The npm version is a single package. Include the appropriate scripts based on your UI framework:
Base scripts for all frameworks:
- Unobtrusive validation with ajax support:
- jQuery plugin:
Kendo UI
- Kendo UI templates:
Note: Kendo UI is no longer a package dependency. You should either install it separately, or use their CDN.
Bootstrap
- Bootstrap templates:
Live example: http://jquery-dynamiclist.azurewebsites.net/
New in version 2.0
- Removed support for jquery ui and jquery mobile
- Added templates
- newItemUrl option can now be a string or function
- Added add and remove methods
- Remove confirmation option that will display a confirm dialog if set
Example Usage
List Example @Html.EditorFor(model => model.ListItems) <!-- base scripts --> <!-- Bootstrap templates -->