.empty()
$('select').empty().append('whatever');
你也可以使用.html(),但注意
.html()
When .html() is used to set an element’s content,any content that was in that element is completely replaced by the new content. Consider the following HTML:
备选:—如果只想选择要删除的选项元素,请使用.remove()
.remove()
$('select option').remove();