JSFiddle - React, Tailwind, and code Playground
HTML
<body>
<form onsubmit="return false;">
<div id="bob">
<input type="image" />
</div>
<input type="text" />
</form>
</body>
CSS
#bob {
display: none;
}
JavaScript
$(document).ready(function () {
$("#bob").click(function () {
alert("#bob.click()");
});
});