$( "#test1" ).on("click", function(e) { e.stopImmediatePropagation(); }); $('#test1').trigger('click');