jQuery-jquery scrollTop怎么解决所有浏览器兼容问题

2025-05-15 13:19:53
推荐回答(1个)
回答1:




checkbox






















1
2
3
4




-------------------------------------------------------------
$(document).ready(function() {
$("td[id^='k_']").hide();
var check = $(":checkbox"); //得到所有被选中的checkbox
var actor_config; //定义变量
check.each(function(i){
actor_config = $(this);
actor_config.click(
function(){
if($(this).attr("checked")==true){
$("#k_"+$(this).val()).show();
}else{
$("#k_"+$(this).val()).hide();
}
}
);
});

});