jquery on link click code example
Example 1: jquery click function
$( "#target" ).click(function() {
alert( "Handler for .click() called." );
});
Example 2: click a link using jquery
$("a").trigger("click");
Example 3: jquery onclick function
$( "#other" ).click(function() {
$( "#target" ).click();
});