87,910
社区成员
发帖
与我相关
我的任务
分享
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
</head>
<body>
<span class='yuan'>数学:3000<input name='kemu' class="jscheck" type='checkbox' title="no2" value="111" /></span>
<span class='yuan'>语文:1000<input name='kemu' class="jscheck" type='checkbox' title="no1" value="22" /></span>
<span class='yuan'>英语:500<input name='kemu' class="jscheck" type='checkbox' title="no3" value="33" /></span>
<input type="button" id="test" />
</body>
</html>
<script type="text/javascript">
$(document).ready(function () {
});
$("#test").click(function () {
var array = '';
$('input[name="kemu"]:checked').each(function () {
array = array + $(this).val()+",";
});
alert(array);
});
</script>