Q:

How to create a persistent javascript where it updates when content is constantly updated via ajax? 

I have a webpage that updates via ajax.  It loads updated news feeds every 1 minute.  What I want to do is create a javascript that detects the incoming date field and put a strong tag around it.  Here's a sample of the html that gets feed through:
<div class="results">
  <div class="article">
    <div class="date">jan 8, 2013</div>
    <p>Some content here</p>
  </div>
  <div class="article">
    <div class="date">feb 8, 2013</div>
    <p>Some content here</p>
  </div>
</div>

I can write the basic javascript that updates it, but it only fires once.  How do I go about making javascript detect if there is anything changed in the "results" element and act accordingly. 

A:

Can you attach a listener to the Ajax (either .complete() or .ajaxStop()), then get all dates and compare them to today`s date.  If they match make the date bold. 
Something like this:
$( document ).ajaxStop(function() {
    var today = new Date();

    $.each( $('.article .date'), function( i, el ){
        var el_text = el.text();
        if(el_text == today.toLocaleFormat('%b %d, %Y')) {
            el.html('<b>' + el_text + '</b>');
        }
    });
});

