alert on click on buttin code example Example: jquery onclick function $( "#other" ).click(function() { $( "#target" ).click(); });