title: Refresh a jQuery function
body: <p>Is possible refresh a function every x seconds or refresh it on single event?</p>
  
  <p>I will explain: </p>
  
  <p>I have a function that makes pagination on my website, inside every div that are "pages" I have some pictures where I have added LightBox.</p>
  
  <p>Everything works nice on the first div (page) but when I change the page it doesnt' work anymore.</p>
  
  <p>I tried to fix in this way:</p>
  
  <pre><code>$('.pagination a').click(function () {
      initShadow();
  });
  </code></pre>
  
  <p>In this way it work on the pageLoad and on the first page that I change, than it stop again.</p>
  
  <p>So I need to fix this issue, everytime I change the "page" I would like it works fine.</p>
  
  <p>Is possible to refresh a function every x second or to refresh it everytime I click on the pagination buttons?</p>