first, sorry for my poor english...
Ok, here's the situation:
I have an one-page-site with a navbar that looks like this
<ul>
<li><a href="link1">#section1</a></li>
<li><a href="link2">#section2</a></li>
</ul>
Additonally I have a jquery-script running, that fades the navbar in or out and adds or removes the class .selected to the listitem with the link of the id which is currently visible on the screen (scrollspy).
And now here's the problem:
I want to grab the link with the class .selected, e.g. "#section2" and then I want to make a div visible.
Maybe I'm thinking too complicated. The poor Problem is: Show me a specific div on a specific site. I think the script which is already running could help. Maybe I'm wrong.
Please help me!
Thank you
EDIT:
try scrolling down on this poorly created fiddle ;) on page 2 and only on page 2 div id problem should appear! http://jsfiddle.net/2a555dyy/