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

  • Home
  • SEARCH
  • 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 6582591
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:17:56+00:00 2026-05-25T16:17:56+00:00

I am working with the colorbox plugin to create modal windows for my web

  • 0

I am working with the colorbox plugin to create modal windows for my web app. I am having a little trouble opening a <div> that is related to <a>.

Ideal behavior

Clicking on:
<a rel="id_123"></a>

should open up a form with the contents in:
div rel="id_123"></div>

Check out my code here for clarification: http://jsfiddle.net/Q4GGS/6/

Thanks!

EDIT: This is what I have tried so far. When a link is clicked, the click event will create a modal with ALL of the listings instead of the related ones.
http://jsfiddle.net/Q4GGS/7/

  • 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-25T16:17:56+00:00Added an answer on May 25, 2026 at 4:17 pm

    DIV’s don’t have rel attributes. You need to replace those with something else (such as a class or an ID). Example JS:

    $('.dialog_link').click(function(e) {
        e.preventDefault();
    
        $.colorbox ({
            href: "#" + this.rel,
            width: '50%',
            inline: true
        });
    });
    

    Example HTML:

        <div class="ticket_details" id="id_123">
            text
        </div>
        <div class="ticket_details" id="id_124">
            text
        </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the colorbox plugin for modal popups. It's working nicely, but there's a
I'm using the ColorBox jQuery plugin to create modal lightboxes for different purposes around
I'm working on a web application and using the jQuery plug-in Colorbox to pop
Working with dates in ruby and rails on windows, I'm having problems with pre-epoch
Working in Eclipse on a Dynamic Web Project (using Tomcat (v5.5) as the app
I am working with two plugins in jQuery: jquery.scrollTo and jquery.Colorbox and I'm having
I am using colorbox a jquery plugin to emulate modal window which is not
I'm having a little issue with the colorbox when using it in a facebook
I am working on a secure site, https. I am using the colorbox jquery
Working with a SqlCommand in C# I've created a query that contains a IN

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.