grab value of URL segment and update a class accordingly?
<p>I'm building a multi-step form in jQuery which updates the URL according to which segment of the form it's currently showing.</p>

<p>eg:</p>

<ul>
<li>index.php#form=step1 </li>
<li>index.php#form=step2 </li>
<li>index.php#form=step3</li>
</ul>

<p>I've also built a breadcrumb menu that links to each of these segments but I need to somehow add an "active" class to the breadcrumb item that is currently being shown. Not sure how I should do this but I figured maybe finding out what the value of #form is and if that value matches the id of the breadcrumb item, then update its class to active?</p>

<p>eg:</p>

<pre><code>if form = step1 
breadcrumbItem addClass "active"

if form = step2 
breadcrumbItem addClass "active"

etc
</code></pre>
