核心代码:
<script type="text/javascript">
jQuery(document).ready(function(){
var _BacoError = "<img src=\"/images/BacoError_wev8.gif\" align=\"absMiddle\">";
jQuery("#field60390").click(function(){ //遗失
checkBoxStatus("field60390");
jQuery("#field60381"+"span").html(_BacoError);
jQuery("#field60382"+"span").html("");
jQuery("#field60382").val("");
});
jQuery("#field60391").click(function(){ //制程
checkBoxStatus("field60391");
jQuery("#field60382"+"span").html(_BacoError);
jQuery("#field60381"+"span").html("");
jQuery("#field60381").val("");
});
function checkBoxStatus(fieldId) {
for (var i = 0; i <2 ; i++) {
var checkNum = 60390 + i;
var checkStr = "field" +checkNum;
if (jQuery("#field" +checkNum).attr('checked') == true) {
if (checkStr != fieldId) {
jQuery("#field" +checkNum).attr('checked', false);
jQuery("#field" +checkNum).next().attr("class","jNiceCheckbox");
}
}
}
}
});
</script>>