JQuery - work with divs
<p>I want to set another class for the clicked menu-part. Clicking generates url with #NAME. Here is my menu:</p>

<pre><code>    &lt;div id="head_menu"&gt;
        &lt;a href="#order"&gt;&lt;div name="order" id="menu_part"&gt;make order&lt;/div&gt;&lt;/a&gt;
        &lt;a href="#portfolio"&gt;&lt;div id="menu_part"&gt;portfolio&lt;/div&gt;&lt;/a&gt;
        &lt;a href="#contacts"&gt;&lt;div id="menu_part"&gt;contacts&lt;/div&gt;&lt;/a&gt;
        &lt;a href="#vacancies"&gt;&lt;div id="menu_part"&gt;vacancies&lt;/div&gt;&lt;/a&gt;
        &lt;a href="#about"&gt;&lt;div id="menu_part"&gt;about company&lt;/div&gt;&lt;/a&gt;
    &lt;/div&gt;
</code></pre>

<p>I need to add class: 'menu_choosed' for clicked part. Here is my jquery-code:</p>

<pre><code>$(document).ready(
    function()
    {
        currentPage = window.location.hash;
        $('#head_menu&gt;div').each(
            function()
            {
                if( currentPage == $(this).hash )
                {
                    $(this).addClass("menu_choosed");
                }
            }
        )
    }
)
</code></pre>

<p>I really don't know, how to filter values :( Help, please.</p>
