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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T05:30:22+00:00 2026-06-09T05:30:22+00:00

For example, if I want to create a jQuery function on a click for

  • 0

For example, if I want to create a jQuery function on a click for a css class “more-link”, however have multiple instances of “more-link” on the page, how can I force jQuery to only run the animation on the clicked class, and not other ones.

  • 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-09T05:30:24+00:00Added an answer on June 9, 2026 at 5:30 am
    $('element').click(function(){
      $(this).animate({
      //scope is ONLY the element clicked
      });
      $('element').animate({
        //this wi ll animate ALL elements matching the selector. Not what you want.
      });
    });
    

    For anyone who finds this answer, the author actually wanted this.

    $('.read-more').click(function(){
      var me = $(this);
      $(this).prev('p').animate({
         height: '100%'
      }, function(){
         //lost $(this) scope...me still holds it, we use it below for a reason.
         $(me).fadeOut(400);
         $(me).next('.hide_post-content').delay(400).fadeIn();
      });  
    });    
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How to create imaged scrollbars, for example: http://www.openstudio.fr/jquery/index.htm Basically, I want to create my
I want to create an example like the image below but instead have a
I want to create a simple menu function which can call it example get_menu()
I want to create a link like this: <a href=http://example.com>text</a> and replace the behavior
I want to create a template class in C#, for example: public class Foo<T>
I'm trying to advance the Jquery-autcomplete function. I want Jquery-autocomplete to create new rows
Q1: I create a jQuery clickable I want when click on input:checkbox in rows
In JavaScript/jQuery, if I want to have a function that can run on an
I want to create an example SaaS app, whereby users are able to signup,
I want to create URL re-write rules for following URL in htaccess. http://example.com/vedios/category/fun/ ->

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.