jquery on load trigger code example
Example 1: trigger a click on page load jquery
$("document").ready(function() {
$("button").trigger('click');
});
Example 2: jquery on load
$(function(){
// equal to $( document ).ready(function() {
});
$("document").ready(function() {
$("button").trigger('click');
});
$(function(){
// equal to $( document ).ready(function() {
});