JSFiddle - React, Tailwind, and code Playground
HTML
<input id="test" />
JavaScript
$(function () {
$('#test').on('input', function () {
alert('event triggered');
});
});
// works
$('#test').trigger('input');
// does not work
document.getElementById('test').oninput();