1. operate on 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" 2.16.doc ument ). find ("input [@ type = 'Radio ']"). ATTR ("checked", "true"); 2 ). remove the CSS attribute class on $ (window. frames ["iframe1" 2.16.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 ). find ("input [@ type = 'Radio ']"). ATTR ("checked", "true"); 2. The parent window element ID is _ m1408, And the CSS class on detail (partition partition parent.doc ument) is added ). 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 be the ID of ifram Document. Frames ["right"]. Expand (); Parent form: parent;
Sub-form: opener; (window. opener. Reload ();)
Certificate (w.w.parent.doc ument). Find ("# alimamaifrm"). ATTR ("src ","Http://www.163.com");