Remove link and add class based on date
<p>I have a calendar built with html and php, and I have the following format for listing the month links:</p>

<pre><code>    &lt;ul class="month-list"&gt;
        &lt;li class="nolink"&gt;Jan&lt;/li&gt;
        &lt;li class="nolink"&gt;Feb&lt;/li&gt;
        &lt;li class="nolink"&gt;Mar&lt;/li&gt;
        &lt;li&gt;&lt;a href="?month=April"&gt;Apr&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="?month=May"&gt;May&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="?month=June"&gt;Jun&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="?month=July"&gt;Jul&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="?month=August"&gt;Aug&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="?month=September"&gt;Sep&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="?month=October"&gt;Oct&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="?month=November"&gt;Nov&lt;/a&gt;&lt;/li&gt;
        &lt;li&gt;&lt;a href="?month=December"&gt;Dec&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
</code></pre>

<p>I need to do date comparison with jQuery to remove the link if the month is past, and add the class of nolink, but was unable to find the correct syntax.</p>

<p>I am looking for syntax that essentially does this:
if Month = Current Month, remove links from previous months and add class "nolink"</p>

<p>Does anyone have any suggestions?</p>
