Unable to clear the Multiselect dropdown and populate values in it dynamically
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have made two multiselect dropdown using multiselect js plugin. 2 nd dropdown gets populated on the option selection of 1 st dropdown. I have use ajax for this purpose. But on ajax callback, 2 nd dropdown elements are not getting clear, and new options are not populating. This is my html code: <div class="row col-md-6" > <select id="multidropdown" multiple="multiple" onchange="ChangedView()"> @foreach (var item in clients) { <option value=@item.ToString() class="col-md-5"> @item.ToString() </option> } </select> </div> <div class="row col