call function after page load jquery in button click code example
Example: trigger a click on page load jquery
$("document").ready(function() {
$("button").trigger('click');
});
$("document").ready(function() {
$("button").trigger('click');
});