I want to select an element in an Iframe that has no src element, since it is populated by javascript. Below is a general structure of the source code i have, with the latest JQuery script that I have tried. Still no luck. Am I missing something? Thanks
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script>
$(document).ready(function() {
var context = $('#listing_content_ifr')[0].contentWindow.document;
var $body = $('#tinymce', context);
$body.addClass('is-active');
});
</script>
<style>
#tinymce {border: solid 1px #ccc; height:300px; width:300px;}
</style>
</head>
<body>
<iframe id="listing_content_ifr" frameborder="0" allowtransparency="true" style="width: 100%; height: 402px; display: block;">
<html>
<head>
</head>
<body id="tinymce" contenteditable="true">
<p><br data-mce-bogus="1"></p>
</body>
</html>
</iframe>
</body>
</html>