我无法删除选择的选项我做错了什么?
这是在控制台中完成的
[
<select class="engclass">…</select>
]
$(".engclass").removeAttr('selected').val("Application # 1").attr('selected',true);
[
<select class="engclass" selected="selected">
<option value="-1" selected>Choose application</option>
<option value="1">Application # 1</option>
<option value="2">Application # 2</option>
<option value="3">Application # 3</option>
</select>