$("input:checkbox[name=parkimage]").click(function(){
var total_checked = $("input:checkbox[name=parkimage]:checked").length;
var total_check_box =$("input:checkbox[name=parkimage]").length;
if(total_checked==total_check_box){
$("#select_all_images").prop('checked',true);
}else{
$("#select_all_images").prop('checked',false);
}
});
Comments
Post a Comment
If you any doubt of any topic then you can comment me.