in javascript trigger function on click code example
Example 1: js trigger click
var element = document.getElementById('element');
element.click();
Example 2: js trigger click
// On mouse-over, execute myFunction
function myFunction() {
document.getElementById("myCheck").click();
}