$("#chk_all").click(function(){
if($("#chk_all").val() == "0"){
$("#test input").attr("checked",$(this).attr("checked"));
$("#chk_all").val(1);
}
else{
$("#test input").removeAttr('checked');
$("#chk_all").val(0);
}
});
- $("#chk_all").click(function(){
- if($("#chk_all").val() == "0"){
- $("#test input").attr("checked",$(this).attr("checked"));
- $("#chk_all").val(1);
- }
- else{
- $("#test input").removeAttr('checked');
- $("#chk_all").val(0);
- }
- });
$("#chk_all").click(function(){
if($("#chk_all").val() == "0"){
$("#test input").attr("checked",$(this).attr("checked"));
$("#chk_all").val(1);
}
else{
$("#test input").removeAttr('checked');
$("#chk_all").val(0);
}
});