How to execute alert after trigger click event
<p>I am trying to execute the alert message after the execution of the trigger event. My code :</p>

<pre><code> $(".addpage").trigger("click").queue(function () { 
  alert($(".page:first-child").attr("id")); 
 });
</code></pre>

<p>But here problem is the alert is executing before completing the trigger event function. What i am doin wrong here?</p>
