1. Operate the elements in the Child window in the parent window, for example, iframe1 is the ID of IFRAME)
1) select all radio buttons in IFRAME
$ (Window. Frames ["iframe1" cmd.doc ument). Find ("input [@ type = 'Radio ']"). ATTR ("checked", "true ");
2) Remove the CSS attribute class on in the subwindow named top_menu element.
$ (Window. Frames ["iframe1" cmd.doc ument). Find ('. top_menu'). removeclass ("On ");
2. Operate the elements of the parent window in IFRAME
1) select all radio buttons in the parent window
Vertex (w.w.parent.doc ument). Find ("input [@ type = 'Radio ']"). ATTR ("checked", "true ");
2. The parent window element ID is _ m1408 plus the CSS class on.
Vertex (w.w.parent.doc ument). Find ("# _ m1408"). addclass ("On ");
IFRAME framework: <IFRAME src = "http://chenxinwen2006.blog.163.com/blog/test.html" id = "iframe1" width = "700" Height = "300" frameborder = "0" scrolling = "Auto"> </iframe>
It seems that you can also use $ ("# myid", top.doc ument );
The parent form calls the method (right) in iframe to the iddocument. Frames ["right"]. Expand (); parent form: parent;
Sub-form: opener; (window. opener. Reload ();)
Certificate (window.parent.doc ument). Find ("# alimamaifrm"). ATTR ("src", "http://www.163.com ");