How can I create a SelectList with multiple selected values?

前端 未结 3 934
日久生厌
日久生厌 2021-01-03 21:47

I\'m trying to set multiple values in a select list:

SelectList List = new SelectList(MyListItems, \"valField\", \"dataField\", );
         


        
3条回答
  •  盖世英雄少女心
    2021-01-03 22:25

    Use the The Harvest Chosen jQuery plugin. See my tutorial Working with the DropDownList Box and jQuery which shows how to do this.

提交回复
热议问题