JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://code.jquery.com/jquery-2.2.4.js"></script>
<span class='hello' data='na'>Element</span>
<button>submit</button>

JavaScript

el = jQuery("<span class='hello' data='na'>Element</span>");
jQuery("body").find(el).html("modified element");