I am new to prototype and scriptaculous and I am trying to get all of the tags in my div with an id of slideshow. How can I put these in an array?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
IDs must be unique, that’s a rule of HTML. You should use a class name of “slideshow”, not an ID.
Here’s an example:
HTML:
Here’s your array:
Here you can loop though all the elements without an array: