title: Is is possible to determine when an element has been rendered using JavaScript?
body: <p>Is there a jQuery equivalent to do the following:</p>
  
  <pre><code>$(document).ready(function() {
  </code></pre>
  
  <p>for an element:</p>
  
  <pre><code>$(a).ready(function() {
  </code></pre>
  
  <p>I have content in an updatepanel and I am calling jQuery UI's .button() on some anchor elements. After the updatepanel refreshed, the anchors are rerendered and lose the UI styling.</p>
  
  <p>I already know how to detect the end of an ajax request using .NET AJAX's add_endrequest(handler), but was hoping for a neater solution using jQuery.delegate.</p>
  
  <p>e.g.</p>
  
  <pre><code>$('body').delegate('#mybutton', 'load', (function(){  //this doesnt work... }
  </code></pre>