how to add jquery code on click event code example Example: jquery onclick function $( "#other" ).click(function() { $( "#target" ).click(); });