jquery click event

JavaScript
$( "#target" ).click(function() {
  alert( "Handler for .click() called." );
});$('#selector').on('click',function(){
    //Your code here
});                  //Click for event to trigger

$( "#target" ).click(function() {
  alert( "Handler for .click() called." );
});$(document).on("click","#test-element",function() {});$( "#target" ).click(function() {
  alert( "Handler for .click() called." );
});
$( "#other" ).click(function() {
  $( "#target" ).click();
});

Source

Also in JavaScript: