jquery对象的遍历$(selector).each()
<!DOCTYPE html>
<html>
<head>
<script language="javascript" src="jquery.min.js"></script>
<title></title>
</head>
<body>
<form>
<select name='group_name'>
<option value="10">2</option>
</select>
<select name='group_name'>
<option value="1">1</option>
</select>
</form>
</body>
</html>
<script type="text/javascript">
$("select[name='group_name']").each(function(i,val){
console.log(val.value);
})
</script>
浙公网安备 33010602011771号