这是从jquery中的dropdownlist中删除所有项目的最快方法 [英] which is the fastest way to remove all the item from dropdownlist in jquery

查看:63
本文介绍了这是从jquery中的dropdownlist中删除所有项目的最快方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想从jquery的下拉列表中删除所有项目。我在下拉列表中有50,000个项目。这是从jquery中的dropdownlist中删除所有项目的最快方法。 ?



我已编写代码删除项目

Hi,
I want to remove all the item from the dropdownlist in jquery .I have 50,000 item in the dropdown list.which is the fastest way to remove all the item from dropdownlist in jquery.?

I have written code to remove item as

$("#ddlassetno").empty();



此代码仅适用于IE,但在mozilla和chrome中需要很长时间才能删除项目。



请帮助


this code is working for me only in IE but in mozilla and chrome it take very long time to remove item.

Please help

推荐答案

#ddlassetno)空();
("#ddlassetno").empty();



此代码仅适用于IE,但在mozilla和chrome中需要很长时间才能删除项目。



请帮助


this code is working for me only in IE but in mozilla and chrome it take very long time to remove item.

Please help



(select [id
("select[id


这篇关于这是从jquery中的dropdownlist中删除所有项目的最快方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆