checkbox复选框的几种简单实现

function selectAll(){
				var checked = $('#selectAll').attr("checked");
				$('.selectable').each(function(){
					var subChecked = $(this).attr("checked");
					
					if(checked!= subChecked){
						$(this).click();
					}
					
				});
			}
function selectAll(){
				var checked = $('#selectAll').attr("checked");
				$('.selectable').each(function(){
					var subChecked = $(this).attr("checked");
					
					if(checked!= subChecked){
						$(this).click();
					}
					
				});
			}

			

你可能感兴趣的:(java)