如何重置使用JQuery精选插件创建的下拉列表?精选JQuery插件:https://github.com/hernansartorio/jquery-nice-select
<select name="married" class="nice-select">
<option value="">Select</option>
<option value="Yes">Yes</option>
<option value="No">No</option>
</select>
$('nice-select').niceSelect();发布于 2021-05-17 14:02:32
重置按钮点击处理以重置下拉菜单:
$('#reset_btn').on('click', function(e){
$('.nice-select').val('');
$('.nice-select').niceSelect('update');
});https://stackoverflow.com/questions/67564654
复制相似问题