Home › Forums › JavaScript › Anything slider link to specific slide not working. › Re: Anything slider link to specific slide not working.
October 19, 2012 at 2:03 pm
#112284
Member
Hi gbucha!
Since AnythingSlider is being initialized on “#slider”, updating the current slide should be done the same way.
Also, I see that every slide has the same links with the same ID. ID’s should be unique. So, I would recommend just changing, or removing the ID’s and use this code:
$(‘nav a’).click(function(){
var n = $(this).attr(‘href’).substring(1);
$(‘#slider’).anythingSlider(n);
});