您的位置:首页 > 其它

如果页面中有子框架时要加上子框架完成加载的判断,不然直接读取有可能读取不到子框架的对象

2011-07-01 15:08 344 查看
$(document).ready(function(){
$(".popbtn").each(function(i,item){
$("#frame_content").load(function(){
var $first = $(item).next("div:frist").find(".xxxxxxx");
var $second = $("#frame_content").contents().find("input");
$first = $first.add($second);
new PopupLayer({trigger:item,popupBlk:$(item).next("div"),closeBtn:$first,useOverlay:true});
});
});
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  框架 function div input