87,907
社区成员
发帖
与我相关
我的任务
分享
<html>
<head>
</head>
<body>
<table>
<tr>
<td width="150">
<input type="checkbox" value="" class="w50" id="price_1"><label for="price_1">sadasdasdasdsadasdas</label>
</td>
</tr>
</table>
</body>
</html>
<html>
<head>
<script type="text/javascript">
// 产品管理鼠标事件
var productMouseDown = function(id)
{
if (document.getElementById('price_' + id).checked == false) {
document.getElementById('price_' + id).checked = true;
}
}
</script>
</head>
<body>
<table>
<tr>
<td width="150">
¥ <input type="checkbox" value="" class="w50" id="price_1">
</td>
<td width="150" onmousedown="return productMouseDown(1)"><span class="manage-p-t">10-01-18 </span>
ddddddddd
</td>
</tr>
</table>
</body>
</html>
<script type="text/javascript">
// 产品管理鼠标事件
var productMouseDown = function(id) {
var chk = document.getElementById('price_' + id);
chk.checked = !chk.checked;
}
</script>
<input type="checkbox" value="" class="w50" id="price_1" onclick="productMouseDown(1);" >