Jquery sub-forms operate on elements in the parent form

Source: Internet
Author: User

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");

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.