javascript - ASP.NET Razor: add to Model moved List box items from another list box -
i have 2 list boxes below:
@html.listbox("selectedlist",(ienumerable<selectlistitem>)viewbag.selectedlist, new { @class="listbox" , id="list2" }) <input id="btnadd" type="button" class="submit" value="add"/> <input id="btnremove" type="button" class="submit" value="remove"/> @html.listbox("nonselectedlist",(ienumerable<selectlistitem>)viewbag.nonselectedlist,new { @class="listbox" , id="list2" })
i move items between lists using add , remove buttons. working fine want add selected items model object. there way can that?
Comments
Post a Comment