title: Attaching multiple click events with same div in Jquery
body: <p>I have one div and there are two events associated with it first is  a click and another a popover trigger which also gets triggered on click .</p>
  
  <p>Now with first click i need to modify the href attribute of the div and second popover event should pick this modified href and opens up a popover with content fetched from href.</p>
  
  <p>The problem i am facing (looks liek to me ) is second popover triggers still picks up old value and appears to me that the sequence/order in which i registered the events is not maintained . How can I solve this problem.  </p>
  
  <p>Here is the my code sample:</p>
  
  <pre><code>retVal = originalURL;
  
  retVal = jQuery('#'+'linkhere').click(getHashPageClick); // thsi function returns a href
  (the value is correctly returned )
  
  jQuery('#'+'linkhere').popoverTrigger(retVal); // thsi function opens up a popover with contents fetched from href URL.
  </code></pre>
  
  <p>but its still picking original URL. Can someone help.</p>