Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

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

#129245
Alen
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.