Home › Forums › CSS › Can’t have more than one UL Slider on page › Re: Can’t have more than one UL Slider on page
May 16, 2013 at 5:43 pm
#135357
Participant
You can only have one unique ID on any given page.
If you need to add more than one slider, you would essentially do this:
In your HTML:
… /* code */…
… /* code */…
In your JavaScript, you would target them individually:
$(‘#slider1’).someSliderPlugin({ … /* options */…});
$(‘#slider2’).someSliderPlugin({ … /* options */…});