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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:18:43+00:00 2026-06-07T01:18:43+00:00

I need to view the dynamic content in fancybox my code looks like <a

  • 0

I need to view the dynamic content in fancybox

my code looks like

<a id="featureExpertPopup" href="#featureExpertPop">View Profile </a>
<a id="featureExpertPopup" href="#featureExpertPop">View Profile </a>
<a id="featureExpertPopup" href="#featureExpertPop">View Profile </a>

and fancy box content

<div style="display: none;">
    <div id="featureExpertPop" style="overflow:auto;">Dynamic Profile</div>
</div>

fancybox call

$("#featureExpertPopup").fancybox({
        'titlePosition'     : 'inside',
        'transitionIn'      : 'none',
        'transitionOut'     : 'none'

    });

Now the problem is popup opening for first anchor link only, i want to open popup for each link with different content (from database)based on profile id.

  • 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-06-07T01:18:45+00:00Added an answer on June 7, 2026 at 1:18 am

    you should not use one ID for multiple elements, use class instead:

    <a class="featureExpertPopup" id='one' href="#featureExpertPop">View Profile </a>
    <a class="featureExpertPopup" id='two' href="#featureExpertPop">View Profile </a>
    <a class="featureExpertPopup" id='three 'href="#featureExpertPop">View Profile </a>\
    
    $(".featureExpertPopup").fancybox({ ... })
    

    $('a').click(function(e){
        e.preventDefault();
        var href = $(this).attr('href') + $(this).attr('id');
    })
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a link that loads dynamic content into a div... there need to
I need to serve static swf using express framework generating dynamic view similar to:
I need a tab view in CSS with each tab showing a dynamic table.
I'd like to do something like the following within a jade template. include page-content/#{view.template}
I am creating dynamic sites with the same code base, where I will need
I have a jQuery script for adding dynamic content inside containerDivs. http://jsfiddle.net/Lijo/srFkJ/2/ This div
I need to view some of PVRTC-compressed textures from iPhone application (*.pvr) on OS
I need to view a site with an iPhone but it redirects me to
I have this in my controller. I need my view to generate some HTML,
In my view I need to visualize some audio data as waveform. I also

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.