If I assign the "next" id to another element function only works once.

check it out:
http://www.pvxg.net/unplanned/

What I want to do is for the user to be able to cycle through the
pictures by clicking on them.

Thanks

On Nov 17, 3:12 am, Charlie <charlie...@gmail.com> wrote:
> question hard to understand however important that ID's must be unique. You 
> could have 20 next buttons if you use class instead of ID
> $('.next").click(function() {
>     // do something
> })
> Would work on all the following:
> <a href="#" class="next">click here</a>
> <h3 class="next">click here</h3>
> <p class="next">click here</p>
> <span class="next">click here</span>
> Pedro Gonçalves wrote:Is it possible to make both the next button and the 
> picture to change to the next picture with jquery.cycle? like in facebook! I 
> tried to give them both the #next id but only on works.. Can I duplicate the 
> next function and rename it so that I am able to use it twice?? Cheers

Reply via email to