jquery trigar button code example
Example 1: trigger button click jquery
$("input").trigger("click");
Example 2: jq click with trigger load data
$( "#foo" ).trigger( "click" );
$("input").trigger("click");
$( "#foo" ).trigger( "click" );