How to implement multiple select in MVC 3 using 'chosen.js' plugin

后端 未结 4 653
一生所求
一生所求 2021-02-04 18:34

How to implement chosen plugin for MVC 3 ?

for this type of output

\"enter

4条回答
  •  囚心锁ツ
    2021-02-04 19:18

    I think you should use like this .

    @Html.DropDownListFor(model => model.CountryId, new SelectList(Model.Countries, "ID", "Name"), "select", new { @ID = "ddlCountry", @class = "chosen-select", multiple = "multiple", Style = "width: 150px;" })
    

    this will help you.

提交回复
热议问题