var iframeDivShow2= $("#iframeId1").contents().find("body").find("input"); //获取子框架所有input对象
var iframeDivShowCheck= $("#iframeId1").contents().find("body").find(":checked"); //获取子框架所有checked对象(单选框/多选框)
iframeDivShow2.each(function(){
$(this).attr("value",$(this).val()); //将现有值绑定到value中去
$(this).removeAttr("checked"); //清理html中原来的checked值
});
iframeDivShowCheck.each(function(){
$(this).attr("checked","checked"); //将取到的实时的checked对象重新选择
});
var iframeDivShow= $("#iframeId1").contents().find("body");
//alert(iframeDivShow.html());
return iframeDivShow.html();