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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:41:02+00:00 2026-06-18T00:41:02+00:00

Web Developer is showing my JavaScript as being valid, but if I run the

  • 0

Web Developer is showing my JavaScript as being valid, but if I run the page this does not work. I tried following the usage on jquery-color’s site, but it kept returning property id missing everytime. I really wish when I took JavaScript in college that I had a better instructor. He flashed through jQuery and most of JavaScript as a whole without really teaching it.

Edit #1: I fixed the (this) error in the code, but still a no go.

Here is the code for the jQuery:

<script type="text/javascript">
        jQuery("li.site-links").hover(function(){
            jQuery(this).stop().animate({
                backgroundColor: "#000000"
            }, 1000 );
        });
    </script>

and site link: http://lab.nmjgraphics.com

  • 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-18T00:41:03+00:00Added an answer on June 18, 2026 at 12:41 am

    Try this:

    jQuery(function(){
       jQuery("a.site-links").hover(function(){
            jQuery(this).closest('li').stop().animate({
                backgroundColor: "#000000"
            }, 1000 );
        },function(){
            jQuery(this).closest('li').stop().animate({
            backgroundColor: "transparent"
        }, 1000 );
        });
     });
    

    You can either try with .parent('li')

    or try this:

    jQuery(function(){
       jQuery("a.site-links").parent('li').hover(function(){
            jQuery(this).stop().animate({
                backgroundColor: "#000000"
            }, 1000 );
        },function(){
            jQuery(this).closest('li').stop().animate({
            backgroundColor: "transparent"
        }, 1000 );
        });
     });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Web developer pastes my javascript code in their HTML My widget gets the page's
I am an experienced web developer, but new to rails. I am writing a
I am an experienced web developer, but new to rails. I am writing a
I'd consider myself an advanced web developer but I'm pretty stumped as to what
Firefox developer web console is suddenly showing mutation events are deprecated... on a line
I am trying to call webservice through jQuery but it is not showing any
I'm a PHP Web Developer. When I create a view article page I was
I'm a web developer by trade, but I'm trying to write a frontend for
I am a junior web developer and this is my first time posting here.
I have web application developed in C#, where a page is showing the output

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.