trigger button click jquery
snippet in javascript

trigger a click on page load jquery

user9616

$("document").ready(function() {
	$("button").trigger('click');
});

trigger button click jquery

user4246

$("input").trigger("click");

jquery trigger

user304

$( "#foo" ).on( "click", function() {
  alert( $( this ).text() );
});
$( "#foo" ).trigger( "click" );

$( "#foo" ).on( "custom", function( event, param1, param2 ) {
  alert( param1 + "\n" + param2 );
});
$( "#foo").trigger( "custom", [ "Custom", "Event" ] );

jquery do click

user5882

$(selector).click();