Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5849481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T13:00:22+00:00 2026-05-22T13:00:22+00:00

Say I have a list of divs identified by class .e.g ‘.myclass’ Inside each

  • 0

Say I have a list of divs identified by class .e.g ‘.myclass’

Inside each div will be some html content rather than an image.
How do I go about opening the colorbox() so that on clicking the arrows, they will flick through the divs?

I looked at the following post which is the same problem, but his solution gives me no clue as to how he got it working: Duplicate question

Is colorbox even the correct plugin for this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T13:00:23+00:00Added an answer on May 22, 2026 at 1:00 pm

    Here’s the best I could get it. I had to group it with ‘rel’, and call colorBox once for each div that you wanted to group.

    http://jsfiddle.net/briguy37/rc5m7/

    UPDATE

    I’ve updated the base fiddle above to Adam’s solution. He uses .each and .find nicely to allow iterating through divs of the same className rather than by unique id. You can see my original solution here: http://jsfiddle.net/rc5m7/13/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Say I have a list of items from a database. Next to each item
Say i have 4 div's in an enclosing div. The div's inside have classes
Let's say I have list elements (more than one) like these: <li id=menu-item-51604><span class=dish-name>葡萄柚清心優多</span><span
Say I have a list of names. case class Name(val first: String, val last:
I have a list of div on a parent function, each does a onclick
Say I have a list of edges each containing two nodes (to and from).
Lets' say we have list of items, each item has (unknown)number of attributes. Sorting
Say we have a list of integers from 0 to 1000: [0, 1, 2,
Say I have a list of arguments: > (setf format-args `(t it's ~a 1))
Say I have a list containing strings that look like this: 00x000s00g00wfds0d dkdf00sdf00sdfg00jk kf00dfjkd0sdl0sd0f0

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.