JSFiddle - React, Tailwind, and code Playground
by Voga
HTML
<span onclick="alert('Boem')">
<button id="test1">test</button>
</span>
JavaScript
$('#test1').trigger('click');
by Voga
<span onclick="alert('Boem')">
<button id="test1">test</button>
</span>
$('#test1').trigger('click');