title: Is there a JQuery event that detects mere presence?
body: <p>I'm using an ajax call to render a partial. The problem is that when the call finishes, my jquery code applies to the newly inserted HTML <strong>only if</strong> I use the live() method (as far as I understand). </p>
  
  <p>I've successfully used the live() method for those selectors that have 'click' events attached to them. Example:</p>
  
  <pre><code>$('.course_name_click').live('click', function(e) {
      $(this).closest('div').next().slideToggle('slow');
      e.preventDefault();
   });
  </code></pre>
  
  <p>But I'm not sure how to use live() for a simple hide() function. That is, I'd like an HTML snippet to be hidden when it first appears. I thought load() might work, but it doesn't. Any suggestions?</p>
  
  <pre><code>$('.descrip_body').live('load', function(e) {
      $('.descrip_body').hide();
  });
  </code></pre>
  
  <p>Just to be clear, I want to transform </p>
  
  <pre><code>$('descrip_body').hide();
  </code></pre>
  
  <p>to a version that uses live(). </p>
  
  <hr>
  
  <p>In response to an answer, tried to attach a hide() callback to the AJAX request. But it still didn't work (i.e. the relevant HTMl wasn't hidden). Here's that code:</p>
  
  <pre><code>$("#courses_body").html("&lt;%= escape_javascript(render :partial =&gt; 'courses') %&gt;", function() {
      $('.descrip_body').hide();
  });
  </code></pre>