I have a dynamic rotator that I am trying to create a nav button for each image. I dont have access to the back end so I have to do this with jQuery on load.
My thinking is that I find each LI item and create a new and append it in the nav but I cant seem to get it working
http://jsfiddle.net/bc0yu7pg/2/
jQuery
navItem = 0;
$( "li" ).each(function() {
navLink = '<a href="javascript:void() id="rot' + navItem + '"></a>';
$('section').append(navLink);
navItem++;
});
HTML
<section>
<ul>
<li>Slide</li>
<li>Slide</li>
<li>Slide</li>
</ul>
<nav></nav>
</section>