title: Can I call jQuery Colorbox on an element before it is added to the DOM?
body: <p>I use jQuery Colorbox which works well like so:</p>
  
  <pre><code>$(function(){
      $("a.slideshow").colorbox();
  });
  </code></pre>
  
  <p>Now, if after page load, I add a new node (matching <code>a.slideshow</code>), (created or ajax'ed), then of course it does not work untile I call <code>.colorbox()</code> again.</p>
  
  <p>I have looked around and seen the difficulty with doing this kind of thing generally. (e.g. <a href="https://stackoverflow.com/questions/2844565/is-there-a-jquery-dom-change-listener">Is there a JavaScript/jQuery DOM change listener?</a>, <a href="http://www.w3.org/TR/DOM-Level-3-Events/#event-type-DOMSubtreeModified" rel="nofollow noreferrer">http://www.w3.org/TR/DOM-Level-3-Events/#event-type-DOMSubtreeModified</a>)</p>
  
  <p>So, just in case there's a special solution for Colorbox, I am formally asking the question.</p>