title: Setting a CSS class by URL with ColdFusion
body: <p>In the code below, I'm looking to set the <code>li</code> class as "active" pro grammatically with ColdFusion based on the url that I'm currently on. So in this example, I've landed at main.cfm and need to set that specific <code>li</code> class to active. If I'm at www.mysite.com/review.cfm I'd like to set that class as "active".</p>
  
  <pre><code>&lt;div id="menu"&gt;
      &lt;ul&gt;
          &lt;li class="active"&gt;&lt;a href="main.cfm"&gt;Main&lt;/a&gt;&lt;/li&gt;
          &lt;li class=""&gt;&lt;a href="review.cfm" title=""&gt;Review&lt;/a&gt;&lt;/li&gt;
          &lt;li class=""&gt;&lt;a href="https://www.mysite.com"&gt;My Site&lt;/a&gt;&lt;/li&gt;
          &lt;li class=""&gt;&lt;a href="reporting"&gt;Reporting&lt;/a&gt;&lt;/li&gt;
          &lt;li class=""&gt;&lt;a href="#"&gt;Logout&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>