---
title: "js判断select列表值的函数"
author: "txf2004"
date: "2009-06-19T09:29:00Z"
tags: []
slug: "js-select"
draft: false
lastmod: "2009-09-18T21:20:01Z"
id: 471191
url: "https://txf2004.iteye.com/blog/471191"
---

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

[http://www.corange.cn/archives/2008/10/2113.html](http://www.corange.cn/archives/2008/10/2113.html)