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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:22:38+00:00 2026-05-25T23:22:38+00:00

Alright, so I have some code hurr: $(document).ready(function(){ $(div.post.photo img).hover(function () { $(div.show).slideToggle(fast); });

  • 0

Alright, so I have some code hurr:

$(document).ready(function(){
    $("div.post.photo img").hover(function () {
        $("div.show").slideToggle("fast");
    });
});

Now, it works like a champ. Except for the fact that it occurs on all images simultaneously. I tried to find out how to get it to work on each image separately, but I don’t have the darnest clue.

What I am trying to do specifically is have a hover event on an image occur only when you hover over that specific image. When you hover over an image a div pops up with some fancy caption and so on. However, when I hover on one image all the other images show the same thing (I understand why, just not how to fix it).

I figure it has something to do with adding this to it, but I’m new to JQuery and I’m lost.

HTML:

<div class="post photo">
    <img src="source" />
    <div class="show">
        <div class="caption">
        Caption
        </div>
    </div>
</div>

Thanks for the help.

  • 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-25T23:22:39+00:00Added an answer on May 25, 2026 at 11:22 pm
    $(document).ready(function(){
        $("div.post.photo img").hover(function () {
            $(this).next("div.show").slideToggle("fast");
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Alright, to start with let's look at some code: <html> <body> <script type=text/javascript> function
i have the folowing code: window.document.getElementById(bufferTopic).innerHTML = <img src='einstein/einstein.png' width='800' height='600'><script type='text/javascript' language='javascript'>alert('test');</script> i
Alright, so I have some jQuery code that will send an AJAX request to
Alright, I have a really basic QStandardItemModel , filled with some numbers. I managed
We have some Well-Attributed DB code, like so: [Display(Name = Phone Number)] public string
Alright, I have some weird behavior and this question goes to the people out
Alright, so I have this bit of code, and when I make the request,
Alright, so I'm running into an issue with my code. What I have done
Alright, I'm injecting some code into another process using the CreateRemoteThread/LoadLibrary trick. I end
Alright I have an xml document that looks something like this: <xml> <list> <partner>

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.