I am trying to use anchor tag from URL in a javascript to show/hide a particular div in an html page. Here is an example for the same.
<div style="display:none;" id="test_one">Display this box when one</div>
<div style="display:none;" id="test_two">Display this box when two</div>
Now, what I want is, when the URL is http://www.example.com/this_page.html#test_one, I want to display first div (with id test_one). Similarly when the URL is http://www.example.com/this_page.html#test_two, I want to display second div (with id test_two).
Can any one please provide me any pointers on this?
Thanks in Advace