I need to retrieve the instance of jQuery embedded in my iframe, as we know there are several ways to retrieve the jQuery instance, with references $
, jQuery
, window["$"]
, window["jQuery"]
.
The problem is that when I try to use this same method with an iframe the result is not the same, it follows the code I'm trying.
$("#frame").get(0).contentWindow.window["$"]
or
var iframeWindow = $("#frame").get(0).contentWindow;
console.log( iframeWindow["$"] );