JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://code.jquery.com/jquery-latest.min.js"></script>
<div class="myelement">
	I am the myelement
	<p>
		Hello world
	</p>
</div>

JavaScript

$(function(){
	$stack = $(".myelement, .myelement *");
  $stack.each(function(){
  	var $this = $(this);
    var element = $(this)[0];
    console.log(element.innerHTML = element.innerHTML + " modified");
  });
});