mvc razor editable DropDownList

后端 未结 1 1088
再見小時候
再見小時候 2021-01-22 15:38

I am looking for a code to make the dropdown list editable in MVC razor. @Html.DropDownList provides the standard select list, but the values are not editable.

I tried a

1条回答
  •  面向向阳花
    2021-01-22 16:20

    First need to add the script reference to the page:

    
    

    This If you host this script on your server.

    You only need to set the id on you razor definition of the dropdown and then do this:

    $('#nameOfDropDown').editableSelect({...});
    

    After doing this and checking the documentation of this plugin you might be able to get a editable select list.

    0 讨论(0)
提交回复
热议问题