jquery select iframe children

后端 未结 7 948
借酒劲吻你
借酒劲吻你 2020-11-30 03:10

I am using the editArea library and jquery to do what i need...

http://www.cdolivet.com/index.php?page=editArea&sess=2b8243f679e0d472397bfa959e1d3841

so

7条回答
  •  孤独总比滥情好
    2020-11-30 03:28

    You can travel any level, The above answers are correct. I did as below

    var iframeMain = $("#iframe0").contents().find('#iframeMain');
    var detailsForm = $(iframeMain).contents().find('#detailsform');
    

    for accessing parents you can use

    window.parent.parent. // upto any level 
    

提交回复
热议问题