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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T02:03:43+00:00 2026-05-16T02:03:43+00:00

please can you help a jquery beginner out? I don’t really know how to

  • 0

please can you help a jquery beginner out? I don’t really know how to go ahead…

I did a jquery animated menu: look at this. the content loads with ajax, so there’s not really a page load.

now i have to do the active item part. to give a clicked item a class “on”, I did this:

$navig.click(function() {
    $(this).addClass("on");
    $navig.not(this).removeClass("on");
})

the item with class “on” has to:

  • animate to active state (similar to the mouseover state), and keep this
  • other items has to animate back to the normal state (when class “on” is removed)
  • if you click on a sub item, the parent item has to animate to active state

any ideas how to solve it?

  • 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-16T02:03:44+00:00Added an answer on May 16, 2026 at 2:03 am

    You could make use of the `:animated’ selector

    $navig.click(function() {
        // turn on current item and animate to blablabla
        $(this).addClass("on").animate({blablabla});
        // turn off others and animate back
        $navig.not(this).removeClass("on").filter(':animated').stop().animate({blablabla});
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can someone please help me out with a JavaScript/jQuery solution for this arithmetic problem:
Im a beginner to css, please can someone help me get this element to
hope can help, trying out Jquery clone which seems to work, but I get
I hope you can help me with a problem; first, please don't worry about
Please any one can help me with jquery Slider range? I am new to
I'm having some problems with jquery and I really hope someone out there can
Please can you help me, i don´t find a solution. I have a function
I was wondering if someone can please help me with a jQuery script. I
Can someone please help me convert the code below to jQuery? var xmlhttp; if
Please can someone help? I have the following code which uploads a file to

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.