title: jQuery .live() and .each() with AJAX polling
body: <p>I have a simple function that goes through the page and adds a CSS class to each element that matches, using <code>.each()</code>. I'm also constantly updating the page with AJAX, and after the first AJAX update that changes things, the function no longer applies. </p>
  
  <p>Code:</p>
  
  <pre><code>$("div.col-conversation span.label-sticky").each(function () {
      $(this).closest('li').addClass('stickyhighlight');
  });
  </code></pre>
  
  <p>I understand why it doesn't work after the first AJAX event and went to try to use <code>.live()</code> or <code>.delegate()</code> but it doesn't appear that you can bind things that aren't events (i.e. you can only bind to click, hover etc.) using this method, so <code>.each()</code> isn't going to work. </p>
  
  <p>Is there a simple way to execute this function without including it in the AJAX success callback and without using a plugin like livequery, which is probably overkill?</p>