event on nav link click jquery code example
Example 1: click a link using jquery
$("a").trigger("click");
Example 2: jquery bind click
$( "#foo" ).bind( "click", function() {
alert( "User clicked on 'foo.'" );
});
$("a").trigger("click");
$( "#foo" ).bind( "click", function() {
alert( "User clicked on 'foo.'" );
});