网站开发与移动开发

博客园 首页 新随笔 管理

//1.判断select选项中 是否存在Value="paraValue"的Item
function jsSelectIsExitItem(objSelect,objItemValue)
{
var isExit = false;
for(var i=0;i<objSelect.options.length;i++)
{
if(objSelect.options[i].value == objItemValue)
{
isExit = true;
break;
}
}
return isExit;
}

http://www.corange.cn/archives/2008/10/2113.html

posted on 2009-06-19 09:29  txf2004  阅读(304)  评论(0编辑  收藏  举报