Jquery Rebind function after Ajax call
<p>I have a problem. The click event that summons a greybox form is broken after a div is refreshed. How to I rebind the function to the refreshed content, that includes the links that will re-fire the greybox? I am assuming I have to re-initialize the functions after the click event. I am a newbie so thans for your help.</p>

<pre><code>    &lt;script type="text/javascript" src="js/jquery-1.4.3.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="js/greybox.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
      var GB_ANIMATION = true;
      $(document).ready(function(){
        $("a.greybox").click(function(){
          var t = this.title || $(this).text() || this.href;
          GB_show(t,this.href,470,600);
          return false;
        });
      });

&lt;/script&gt;

&lt;script type="text/javascript"&gt;  
    function update(){
      jQuery("#showdata").load("maincontentdiv.php&lt;?php echo $passme;?&gt;");
      }

function GB_hide2() {
  $("#GB_window,#GB_overlay").hide();
    $("#GB_window").remove();
    update();


}
</code></pre>
