$(window.frames["iframe1"].document).find(”input[@type='radio']“).attr(”
checked”,”true”);
<iframe src=”test.html” id=”iframe1″ width=”700″ height=”300″ frameborder=”0″ scrolling=”auto”></iframe>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>jQuery控制iframe_www.jb200.com</title>
<script type="text/ecmascript" src="../js/jquery-1.2.6.js"></script>
<script type="text/
javascript">
$(function(){
$("#t1").hover(function(){alert('');});
//$("iframe").contents().find("body").append("I'm in an iframe!");
//$(window.frames["iframe1"].document).find("input[@type='text']").attr("size","30px");
//$("#iframe1").contents().find("#d1").css('color','red');
//$(window.frames["iframe1"].document).find("input[@name='t1']").css({background:"#369"});
//$("#iframe1").src("test.html");
});
</script>
</head>
<body>
<div>
<input type="text" id="t1" />
<iframe id="iframe1" src="child.htm"></iframe>
<iframe src="child.htm" width="300" height="100"></iframe>
</div>
<div>
</div>
</body>
</html>