i hope someone can point me in the right direction
On a existing html site , i have a page with a lot of divs , each div is a “news message”
i use pagination plugin on this page to show just 1 div at the time .
$("#newsmessages .news").quickpaginate({ perpage: 1, showcounter: true, pager : $("#nieuwsbericht_list_counter") });
.
what i want to do is :
Get from every div the h1 put it in a list on the sidebar of the page and make it a link to the div .
This is the structure of the news messages:
<div class"news">
<h1>test</h1>
<p>blablabla</p>
</div>
<div class"news">
<h1>test1</h1>
<p>blablabla</p>
</div>
<div class"news">
<h1>test2</h1>
<p>blablabla</p>
</div>
<div/>
Is this possible with jquery ?
this one is pulling my brains out for 3 days now
thnx
UPDATE:
Thanks to Weston i have my sidebar with anchors ,
But when i click on a anchor nothing happens , i blame it on the pagination plugin , without this plugin the anchors work .
is there somebody with a solution for this i prefer a pagination plugininstead of scrolling down half an hour .
Thnx
Jeroen
Here’s the jQuery. It creates anchors in the news divs and puts links in a list in a sidebar div.
Here’s the markup to go with it..