I add a click event handler to an element
$(\".elem\").click(function(){ $.post(\"page.php\".function(){ //code1 }) })
You can try writing this way:
$(".elem").live("click", function(){ //code1 }) // for newer jquery version from 1.9 $(".elem").on("click", function(){ //code1 })
And, your trigger will always execute as fired.