déclencher un clic sur la page Chargement jQuery
$("document").ready(function() {
$("button").trigger('click');
});
RandomCoder
$("document").ready(function() {
$("button").trigger('click');
});
$("input").trigger("click");
$("selector").click(); //or
$("selector").trigger("click");
$( "#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" ] );