attaching handlers to virtual controls in jQuery
<p>Here is what i'm trying to accomplish....</p>

<p>I need to be able to register elements that aren't part of the DOM when they are created.</p>

<p>here is the syntax i'm trying to synthesize</p>

<pre><code>$(document).ready(function(){

   $('#virtualControl').registerControl(function(){ alert('do something'); });

   // simulate adding the control to the dom
   $('#virtualControls').append($("&lt;a id='virtualControl'&gt;Virtual&lt;/a&gt;"));

   $(document).trigger('render'); // at this point it should call the fn that was passed in to the 'register control' function

});
</code></pre>
