首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2EE开发 >

jquery 选中checkbox ,其余页面checkbox实现同步选中

2013-09-12 
jquery选中checkbox ,其他页面checkbox实现同步选中$(document).ready(function(){$(#checkall).click(f

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');

热点排行