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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T11:39:54+00:00 2026-06-06T11:39:54+00:00

This is what the bottom of hy head looks like: $(‘#hello’).mouseenter(function() { $(this).effect(bounce, {

  • 0

This is what the bottom of hy head looks like:

$('#hello').mouseenter(function() {
$(this).effect("bounce", { times:1, distance:10 }, 800);
});

I’m linking to jQuery 1.7.2 and jQuery UI 1.8. I’m not getting any errors, but when I hover over the #hello div, nothing is happening.
Any ideas?

Thanks!

  • 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-06T11:39:55+00:00Added an answer on June 6, 2026 at 11:39 am

    You jQuery code seems fine, So it’s most likely You have missed the document ready block

    So add the doc ready handler like

    $(function() {
    
        $('#hello').mouseenter(function() {
            $(this).effect("bounce", {
                times: 1,
                distance: 30
            }, 800);
        });   
    });​
    

    It will ensure that that code will fire when DOM is ready.

    If you just use $("#hello").mouseenter(...) without any doc ready block, then there is a chance when this code will run, when there isn’t any element with id hello in DOM yet. So $("#hello") will return an empty set and mouseenter binding won’t work.

    An example markup when it won’t work without doc ready block,

    .
    .
    .
    <script type="text/javascript">
        $("#hello").mouseenter(....);
    </script>
    .
    .
    .
    .
    <div id="hello">Blah Blah....</div>
    

    As browsers, interprets the markup sequentially, it will execute the js code as soon as it face it. And when it executes the JS block here, it hasn’t yet parsed the <div id="hello"> tag yet, as it appears after the JS block, So they are not in DOM at that moment.

    So for the above case $("#hello") is empty and hence event binding won’t work. So it’s always safe to put all your JS code inside document ready block like

    $(function){
       // put all your JS code here
    });
    

    Read more http://api.jquery.com/ready/

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

Sidebar

Related Questions

I've got very weird problem in my current project. The #head div looks like
This is what my header looks like right now at http://www.bolistylus.com I am wanting
What I have missed? My timepicker looks like this, it doesn't use the theme
I am writing some css code for a school website that looks like this
I have a view file like this : <html> <head> <meta name=layout content=main />
this is what the page looks like <div id=DivID> <input type=hidden id=Hidden1 value=Value1 />
This thing has been doing my head in for a little while now and
The typical FFT for audio looks pretty similar to this, with most of the
I have a bunch of elements that look like.. <div id=hi> <div class=head> </div>
Hello I am working on this design, but there seems to be a problem

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.