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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:24:39+00:00 2026-06-10T21:24:39+00:00

I had someone from this site help me out with a slider problem I

  • 0

I had someone from this site help me out with a slider problem I was having and I just need someone to help me with the final piece of the puzzle.

This is the Fiddle http://jsfiddle.net/gajjuthechamp/vrqdh/2/

At the moment when you click on the “thumbnail” the content appears in the main div above.

I need the divs/thumbnails under “extraContent” have it’s own unique content div under “mainContent”.

Hope this makes sense.

Thanks

jQuery:

$(function(){
  $("#parent").on("click", ".extraContent div", function(){
       newHtml=$(this).html();
       $("#parent").find(".mainContent p").fadeOut(1000,function(){
              $(this).parent().html(newHtml);
              $(this).parent().fadeIn(1000);
       });
    });
});

HTML:

<div id="parent">
    <div class="mainContent"> <p>This is the default Text</p></div>
    <div class="extraContent">
        <div><p>test and Image Goes hear for 1 div</p></div>
        <div><p>test and Image Goes hear for 2 div</p></div>
        <div><p>test and Image Goes hear for 3 div</p></div>
        <div><p>test and Image Goes hear for 4 div</p></div>
    </div>
</div>

CSS:

#parent { width:400px; margin:auto}
.mainContent { width:430px; height:300px; border:1px solid #000;padding:5px; }
.extraContent {overflow:auto; width:450px;}
.extraContent div{float:left; width:90px; height:90px; border:1px solid #00F; margin:5px; padding:5px }
.extraContent div:hover { border:1px solid #0F0;cursor:pointer }
  • 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-10T21:24:40+00:00Added an answer on June 10, 2026 at 9:24 pm

    jsFiddle demo

    HTML:

    <div id="parent">
        <div class="mainContent">
            <div class="cont"> Content 1....</div>
            <div class="cont"> Content 2....</div>
            <div class="cont"> Content 3....</div>
            <div class="cont"> Content 4....</div>  
        </div>
        <div class="extraContent">
            <div><p>1 Custom content here</p></div>
            <div><p>2 Custom content here</p></div>
            <div><p>3 Custom content here</p></div>
            <div><p>4 Custom content here</p></div>
        </div>
    </div>
    

    ADDED CSS:

    .cont{position:absolute;}
    

    jQuery:

    $(function(){
      $('.cont:gt(0)').hide();
      $("#parent").on("click", ".extraContent div", function(){
           var ind = $(this).index();
           $("#parent").find(".cont").stop().fadeTo(600,0,function(){
               $('#parent').find('.cont').eq(ind).stop().fadeTo(300,1);
           });
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay people, I'm sure someone has had this issue and can help me out.
I just found out because someone had a ' in their last name and
I had someone build out a custom CMS for a small site and now
I'm hoping someone can find this problem. I had an app that was fully
Picking up a tip from someone else on this site, I've been using logical
I'm using phpmyadmin and working on someone site whose information is pulled from a
Had a conversation about sitemaps with someone from marketing. It was stated that a
Some student asked this on another site, but got no answers. I had a
Can please someone put me out of my misery and tell me why this
*NOTE - This code is from a third party extension. I had no part

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.