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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T10:54:06+00:00 2026-06-12T10:54:06+00:00

I have looked around and basically lived on the Jquery API page, but I

  • 0

I have looked around and basically lived on the Jquery API page, but I can’t seem to understand how to get a certain hover event to fire.

What I have:

<div class="profile profile-inner">
<div class="profile-footer">
<ul class="profile-actions">

What I want:

The ul class is hidden. Then once the div class “profile profile-inner” is hovered I want the ul class to be visible.

Notes:

As far as I know, I will have to use this because there are many div classes profile profile-inner (because of many different members’ profiles on that particular page)

  • 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-12T10:54:08+00:00Added an answer on June 12, 2026 at 10:54 am

    .hover() takes two arguments: a function to call when transitioning to the “hover state”, and another function to call when leaving the “hover state”:

    $('.profile.profile-inner').find('ul').hide();
    $('.profile.profile-inner').hover(function() {
      $(this).find('ul').show();
    }, function() {
      $(this).find('ul').hide();
    });
    

    I don’t recommend doing this: Depending on the layout of your page, detecting hover with Javascript may be unreliable, and you may get “stuck” in a state. This can annoy users, and fortunately, you can use CSS by itself to do what you want:

    .profile.profile-inner ul { display: none; }
    .profile.profile-inner:hover ul { display: block; }
    

    If your outer element is an <a> tag, this will even work in MSIE6.

    If you want further backwards-compatibility, I recommend creating a behavior-shim to complement the CSS-based method instead of using jQuery’s hover. This method works all the way back to MSIE4.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sorry if this is obvious but have looked around and can't get this working:
I've looked around and have bits and pieces but can't put the puzzle together.
I have looked around on here but can not find out why this is
I looked around, but couldn't find what I was looking for.... Basically I have
I've looked around a bit, but can't seem to find the answer I'm looking
I have looked around for quite some time trying to get openCV installed. I'm
I have looked around here and the Internet in general but it seems this
I've got zero experience with Python. I have looked around some tutorial materials, but
I've looked around but have yet to find a great solution the the following
I looked around but haven't found an answer to this. I have a CentOS

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.