Highlight div that contains date
<p>I'm trying to make code that changes the color of the div (with the class "carrythatweight") if it has the date in it.</p>

<p>This is the HTML I'm using:</p>

<pre><code>&lt;div class="carrythateright"&gt;groan...&lt;/div&gt;
&lt;div class="carrythateright"&gt;what in the world is going on !!!&lt;/div&gt;
&lt;div class="carrythateright"&gt;stackoverflow is SO helpful. It is now 12/26/2012 !!!!&lt;/div&gt;​
</code></pre>

<p>This is the script I'm using, but it doesn't really work:</p>

<pre><code>var currentTime = new Date()
var month = currentTime.getMonth() + 1
var day = currentTime.getDate()
var year = currentTime.getFullYear()

$(document).ready(function() {
    $(".carrythatweight:contains('' + month + '/' + day + '/' + year +'')").css("color", "#00bbbb");
});​
</code></pre>

<p>Here is the <a href="http://jsfiddle.net/37tR5/" rel="nofollow"><strong>Fiddle</strong></a>  </p>
