bind click in click function code example
Example 1: jquery bind function to multiple events
$('#element').on('keyup keypress blur change', function(e) {
// e.type is the type of event fired
});
Example 2: jquery bind click
$( "#foo" ).bind( "click", function() {
alert( "User clicked on 'foo.'" );
});