JSFiddle - React, Tailwind, and code Playground

HTML

<iframe id="myframe" src="jsfiddle.net"></iframe>

JavaScript

var frameRef = $('#myframe')[0];
var frameDocument = frameRef.contentWindow ? frameRef.contentWindow.document : frameRef.contentDocument;
var test = $(frameDocument).find('#name').html();
alert(test);