Answer the question
In order to leave comments, you need to log in
Ajax and bootstrap-tour: how to make friends?
Good day :) There is such a lib: bootstraptour.com . There is a problem that steps based on dynamic elements simply do not bind to these elements. Sample code below:
this.tour = new Tour({
backdrop: true,
steps: [
{
element: $('.ajaxLink:eq(1)'), // Этот уже существует на странице...
title: "",
content: "Кликните на </b>кнопку..</b>",
},
{
element: $('.modal'), // Этот контейнер подключается динамически...
title: "",
content: "Кликните на </b>модалку..</b>",
}
]
});
// /temp-container
this.tour.init();
this.tour.start();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question