日期:2014-05-18  浏览次数:20625 次

jquery 选中checkbox ,其他页面checkbox实现同步选中
$(document).ready(function(){
$('#checkall').click(function(){
$("input[type='checkbox']").attr('checked', $('#checkall').is(':checked'));
})
});

这个是当前页全选/反选复选框;我现在做的是checkall在top页面,而其他的checkbox在bottom页面,怎么才能在top页面选中checkall,在bottom同步全选/反选 ?
jquery checkbox function

------解决方案--------------------
$(window.parent.frames["bottom"].window.document).find("input[type='checkbox']").attr('checked','checked');