87,964
社区成员
发帖
与我相关
我的任务
分享
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>statistics test</title>
<script src="http://www.w3school.com.cn/jquery/jquery-1.11.1.min.js"></script>
<script>
function change(){
if($("#select_op").val()=="gz_b_60"){
$("#checkboxes").attr('name',"checkboxes[{$banji.bzr_id}_@_{$banji.keshi_y_60}]");
$("#mydiv").text("1");
}
else if($("#select_op").val()=="gz_b_100"){
$("#checkboxes").attr('name',"checkboxes[{$banji.bzr_id}_@_{$banji.keshi_y_100}]");
$("#mydiv").text("2");
}
}
</script>
</head>
<body>
<div id="mydiv">没看到不爽</div>
<input id="checkboxes" name="checkboxes[]" type="checkbox" value="" style="height:20px; width:20px;"></input>
<select name="select_op" id="select_op" class="select" onchange="change()">
<option value=""></option>
<option value="gz_b_60">插入60%到本月工资表</option>
<option value="gz_b_100">插入100%本月工资表</option>
</select>
</body>
</html>