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 4100416
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T20:33:50+00:00 2026-05-20T20:33:50+00:00

I am using JQuery colorbox like that: There is a link(with a button) that

  • 0

I am using JQuery colorbox like that: There is a link(with a button) that has a class cboxElement. The html of colorbox is at that link, I mean at another JSP file. When user click that link colorbox appears and everything is OK.

However how can I use colorbox for something within my page between div tags I mean without writing another JSP file that will be non-visible for users and it will appear after a user clicks a button)?

EDIT: I found that: If inline ‘true’ a jQuery selector can be used to display content from the current page. Example:

$("#inline").colorbox({inline:true, href:"#myForm"});

I think this is what I am looking for but I couldn’t find any example of it?

  • 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-20T20:33:51+00:00Added an answer on May 20, 2026 at 8:33 pm

    Take a look at the example for inner HTML on this page. I believe that is what you’re looking for.

    If you look at the source of the page, you’ll find this HTML:

    <!-- This contains the hidden content for inline calls -->
        <div style='display:none'>
    
            <div id='inline_example1' style='padding:10px; background:#fff;'>
            <p><strong>This content comes from a hidden element on this page.</strong></p>
            <p>The inline option preserves bound JavaScript events and changes, and it puts the content back where it came from when it is closed.<br />
            <a id="click" href="#" style='padding:5px; background:#ccc;'>Click me, it will be preserved!</a></p>
    
            <p><strong>If you try to open a new ColorBox while it is already open, it will update itself with the new content.</strong></p>
            <p>Updating Content Example:<br />
    
            <a class="example5" href="../content/flash.html">Click here to load new content</a></p>
            </div>
        </div>
    

    This is the link that launches ColorBox on click:

    <p><a class='example8' href="#">Inline HTML</a></p>
    

    This is the binding for ColorBox:

    $(".example8").colorbox({width:"50%", inline:true, href:"#inline_example1"});
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using jQuery, is there a way to select all tag that reference a specific
Using a lightbox like ColorBox or jQuery Lightbox Plugin how can i make a
Using jQuery, how do you check if there is an option selected in a
I'm using the jquery plugin ColorBox . I have a page with several item
I am using jquery lightbox plugin colorbox ( http://colorpowered.com/colorbox/ ) and i want to
I'm using jQuery ColorBox to display a shopping cart item. When a user enters
I'm using Colorbox to show the html content of hidden divs on my page.
i am using jQuery colorbox plugin. it is true with asp.net page but not
for this I am using colorbox jQuery plugin http://colorpowered.com/colorbox/ and a form. I am
I am using Colorbox 1.3.6 with jQuery 1.4.2. Somehow the folowing code did not

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.