JSFiddle - React, Tailwind, and code Playground

HTML

<input type="button" id="selector"  value="click" />

JavaScript

$('#selector').on('click',function(){

 $(this).trigger({
    type: 'mousedown',
    which: 3
}); 
});