How to use jquery from parent inside an iframe?

后端 未结 3 1270
萌比男神i
萌比男神i 2020-12-08 22:25

I have a file, let us call it parent-win.html, served by domain example.com. This file has jquery included in it. An iframe, lets call it iframe-win.html, is embedded in thi

3条回答
  •  无人及你
    2020-12-08 23:19

    You need to load jQuery inside the iframe.

    EDIT: Okay, if the frame is not on the same domain, then you do not have to reload jQuery. See Access jQuery library from iframe

提交回复
热议问题