I’m building a slideshow from scratch using javascript/jquery. I’m adding a pagination dynamically below the slideshow as numbers.
What I want is, whatever slide is active then its respective pagination number should be highlighted by adding a class called active, which is cached in a variable called this.active or o.active. For some reason nothing happens, even though I’m using the correct selectors to locate them.
Here is my code: http://jsfiddle.net/A3rQS/
You can look at the statement o.paginationItem, in the function called fadingFX(). I don’t know what’s wrong with it that it can’t be found.
Please, can someone help…?
Many thanks
This is what happens:
.paginationelement on the page, sopaginationandpaginationItemare not referencing what you think they arestart()method and inside it you calladdPagination()methodaddPaginationyou are creating the.paginationelement and adding it into DOMpaginationandpaginationItemvariables