我想清除列表框中的值,我使用此代码来清除
$("#transfernumber").empty();
任何其他可用选项都不起作用。
<label>Send Coupon No.</label>
<span class="divider" style="width:auto">:</span>
<select value="" name="transfernumber" id="transfernumber">
<option data-amount="data-amount">Select Coupon Number</option>
</select>
编写此代码后才有效
$("#transfernumber").multiselect('refresh');
最佳答案
关于javascript - 如何清除jquery列表框中的值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24283503/