我需要了解最快的方法,从减少名单中删除数百个选择。
Right now, Firefox is really slow at updating my 2nd drop down dynamic list. Chrome is doing OK with the script but I need to speed up my removal of:
<select id="myDropDown" name="myDropDown">
<option value=1>1</option>
<option value=2>2</option>
<option value=3>3</option>
<option value=4>4</option>
<option value=5>5</option>
... all the way to let s say 500
</select>
Repopulating it is a breeze. I have a json parser that creates the
<option></option>
fields.
我尝试:
.remove()
.children().remove()
.empty()
他们在排除数百种选择方面表现得同样缓慢。 是否有人失踪?