JavaScript to add class not working?
<p>I have the following JS function:</p>

<pre><code>function addTopLinks() {

    $('#calendar .fc-view-resourceNextWeeks thead th .fc-resourceName')
 .addClass('top-cell');
};
</code></pre>

<p>It is not adding the class.</p>

<p>I have another:</p>

<pre><code>function addDayClass() {
    $('#calendar .fc-view-resourceNextWeeks thead th')
        .filter(function () {
            if ($(this).text().indexOf('Mon ') == 0) return true;

            return false;
        })
        .addClass('monday');
};
</code></pre>

<p>That one works just fine.</p>

<p>This is the hierarchy:</p>

<p><img src="http://i.stack.imgur.com/t7c7Q.png" alt="enter image description here"> </p>

<p>I am really not sure why the first one is working and not this one...</p>

<p>Thanks</p>
