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

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #43557
    navgill88
    Member

    I am using Nivo Slider(JQuery) on my page. I want to add one more JQuery slider on the same page but not able to do so.
    I browsed a bit and also used JQuery – noConflict() function but it even didn’t work.
    Please help !

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.