JSFiddle - React, Tailwind, and code Playground

by salman

HTML

<p>wait 5 seconds</p>
<iframe src="http://jsfiddle.net/salman/rx3NU/show/" id="iframe1">

JavaScript

window.setTimeout(function() {
    var iframe = document.getElementById("iframe1");
    var doc = iframe.contentDocument;
    $(doc).find(".tooltip").css({
        "background-color": "green"
    }).text("The text was changed via jQuery from outside this frame!");
}, 5000);