JSFiddle - React, Tailwind, and code Playground
by ozancn
HTML
<input type="button" data-t="food" data-q="2" value="Eat" id="foodHelper_1" class="foodHelperEat food1" />
<input type="button" value="deneme" name="input" id="foodHelper_0"/>
JavaScript
$('#foodHelper_1').click(function() {
$('#foodHelper_0').trigger('click');
alert('clicked');
});
$('#foodHelper_1 input').click(function(e) {
e.stopPropagation();
});