And*_*ris 14 html iframe jquery
我有一个页面,其中包含一个iframe到另一个页面,我正在寻找的是点击iframe内的东西,然后可以访问或更具体地隐藏父级中的div.我知道一些JQuery,但出于某种原因,当我尝试自己写代码时,只是茫然地坐在代码编辑器中
ehm*_*d11 34
在iframe中尝试:
$('#DIVtobehidden', window.parent.document).hide();
Run Code Online (Sandbox Code Playgroud)