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 onclick="jQuery('body').find('span.hello[data=\'na\']').html('modified element')"">submit</button>

JavaScript

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