button trigger clicked code example
Example 1: trigger button click jquery
$("input").trigger("click");
Example 2: js trigger click
var element = document.getElementById('element');
element.click();
$("input").trigger("click");
var element = document.getElementById('element');
element.click();