使用JavaScript从checkedlistbox中删除项目 [英] remove items from checkedlistbox using javascript
本文介绍了使用JavaScript从checkedlistbox中删除项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请问,有人知道如何使用Java脚本从清单列表中删除项目吗?
Please, does anyone know how to remove items from a checkedlistbox using java script?
推荐答案
尝试了什么?
看看 http://www.plus2net.com/javascript_tutorial/list-remove.php [ ^ ]或http://forums.asp.net/t/977820.aspx [
Tried anything?
Have a look at http://www.plus2net.com/javascript_tutorial/list-remove.php[^] or http://forums.asp.net/t/977820.aspx[^] or try searching yourself.
Ed
这将删除这些项目.
This will remove the items.
function removeItems(clb)
{
var i;
for(i=clb.options.length-1;i>=0;i--)
{
clb.remove(i);
}
}
这篇关于使用JavaScript从checkedlistbox中删除项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文