javascript - Bootstrap tour template not applying id on all buttons -


i added id next button style following template tag in bootstrap tour. applied new id next button applies first one, not latter stages. know why?

template: "<div class='popover tour'> <div class='arrow'></div> <h3 class='popover-title'></h3> <div class='popover-content'></div> <div class='popover-navigation'>     <button class='btn btn-default' data-role='prev'>« prev</button>     <span data-role='separator'>|</span>     <button class='btn btn-default' id="thisone" data-role='next'>next »</button> </div> <button class='btn btn-default' data-role='end'>end tour</button> </nav> </div>", 

the problem you're using id many times, use class instead. id should unique. careful.

from:

id="thisone" 

to:

class="thisone" 

you can read more problem here: https://stackoverflow.com/a/11114634/2649456


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -