I have iframe content that includes jQuery and the jQuery part of the content in the iframe does not work in IE (the part that is not used by jQuery works fine and everything works fine in Chrome and Firefox).
Here is the code:
<!DOCTYPE html> <html> <head> <title>iframe content</title> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <h1>This heading is showing up just fine.</h1> <div id="jQuery-generated-content"> </div> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"> </script> <script src="pathTojQueryPlugin.js"></script> <script type="text/javascript"> jQuery.codeToInitiatePlugin </script> </body> </html>
I tried to insert jQuery code in my head, right after the body tag, with both relative and absolute paths, but no luck. I would really appreciate if anyone knows of any workarounds for this or what causes IE not to read jQuery.
Thanks in advance!
source share