JSFiddle - React, Tailwind, and code Playground
by makingthings
HTML
<div>
<p>Here is a picture</p>
<img src="http://lorempixum.com/400/200" alt="picture" />
<div id="debug"><h2>Debug Output</h2>
</div>
</div>
JavaScript
$(document).ready(function(){
function log(s){
$("#debug").append('<p>' + s + '</p>');
}
if ($('body').find('p').length > 0){
log('something found');
}
else {
log('nothing found');
}
});