get heading name as url using jquery
<pre><code>&lt;div class="myclass selected"&gt;
    &lt;h2 class = "title"&gt;#Content 1&lt;/h2&gt;
&lt;/div&gt;
&lt;div class="myclass"&gt;
    &lt;h2 class = "title"&gt;#Content 2&lt;/h2&gt;
&lt;/div&gt;
&lt;div class="myclass"&gt;
    &lt;h2 class = "title"&gt;#Content 3&lt;/h2&gt;
&lt;/div&gt;
&lt;div class="myclass"&gt;
    &lt;h2 class = "title"&gt;#Content 4&lt;/h2&gt;
&lt;/div&gt;
</code></pre>

<p>I want to show as "http://example.com/#content-1" in url and want to update for each selection. Is this possible to do that using jquery ?</p>
