I've written a website tour with the jQuery plugin Feature Walkthrough
<button id="yui-galleryintrotourui-buttontourend-id" class="yui-galleryintrotourui-card-next yui3-button notice" data-seqid="end"> … </button>
This is pretty much how I'm currently attempting to check if the jQuery function introTour
has finished, tour_cards
example is available on the website.
$().introTour(tour_cards, function(){
alert("Finished");
});
I've tried using a .live('click', function(){});
event to pick up, the click event once it has been made on the yui-galleryintrotourui-buttontourend-id
, but it doesn't do anything (I think, it is because, these events must be added before the elements are added to the DOM itself).