|
Hi, I'm pretty new to jQuery and jQueryUI and I'm eager to try out things. This time, I want to create a content slider than has auto play and can jump to a specific slide. I was able to sort things out for those two rules, but then I want to add a bullet indicator which also replicates the "jump to slide" functionality of #slideNav. I have tried repeating the same code and attaching a different id (#bullet) but I couldn't get it to work. (I know this would violate web standards- ID uniqueness). Here's my code:
Here's the head code: (Using jQuery 1.4.2, jQueryUI 1.7.2)
Any ideas on how to make this work? Hope someone could lend a hand and point out some advice :) thanks! |
|
Creating a second UL doesn't work because the API doesn't know what to do with it. If you look at jQueryUI's source, the _tabify function only takes ul:first and does it's jQuery magic on it to turn it into a real tab panel. So aside from messing with jQueryUI, you can just call the select method of the tab directly (note the zero-based index). Is this what you need? This works for me:
|
I'm guessing that this isn't your previously working code before the modifications that you're trying to achieve. Could you post the originally working code so we can see if it's really working? Also, you're missing the end quotes on the
hrefattributes of the anchor tags insideliwithnav-slide-2id. Also, you're using the sameidfor 2 different elements, which would probably cause problems when referring to those elements.