no result occur when i click test1 of test2
You need to put the event registration in document.ready() so that the element you are trying to bind the event are ready to your script.
$(document).ready(function(){ $(".trigger").click(function(event){ console.log("d"); }); });