Home › Forums › JavaScript › Can’t add more than one JQuery slider on a page › Re: Can’t add more than one JQuery slider on a page
March 21, 2013 at 3:23 pm
#129245
Participant
JavaScript:
$(window).load(function() {
$(‘#slider1’).nivoSlider({
// settings
});
$(‘#slider2’).nivoSlider({
// settings
});
});
HTML:
[div id="slider1" class="nivoSlider"]
// content
[/div]
[div id="slider2" class="nivoSlider"]
// content
[/div>]
Replace “[” and “]” with “<" and ">” in the HTML section.
No need to use `noConflict()`. Which is only used when mixing different libraries.