Good day to all. There was such a question. There is a slider . It seems to be dealt with by him. But there was such a task: you need to make several different sliders on the same page. The answer is to make them different classes and initializing the slider several times is not good. Content on the page will be created automatically from the database. Well, or if there are other options for similar sliders - ready to look in their direction.

  • one
    @alexfedosienko, After the other forum members answered your question, you need to look at the answers and 1) vote for the useful ones from your point of view, 2) accept the best one that really helped you. It is very important to vote for answers and accept them, do not forget about it. - mantigatos

1 answer 1

The answer is to make them different classes and initializing the slider several times is not good.

Why? After all, you can do this:

<div class="slider"> <ol> ... </ol> </div> <div class="slider"> <ol> ... </ol> </div> // и так далее 

And then for each initialize your slider:

 $(".slider").each(function(){ $(this).liteAccordion(); }); 

And everything works

  • Thanks, see somewhere with the settings numudril. - alexfedosienko