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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:21:08+00:00 2026-05-23T08:21:08+00:00

I was just poking around with jQuery, and I stumbled upon the Find function.

  • 0

I was just poking around with jQuery, and I stumbled upon the Find function.

I tested like this:

$(document).ready(function(){

    $('button').click(function(){

        $('div').find('div').fadeOut(2000);

    });
});

And this

$(document).ready(function(){

    $('button').click(function(){

        $('div div').fadeOut(2000);

    });
});

And both produce the exact same result.

Whats the difference? 🙂

  • 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-23T08:21:08+00:00Added an answer on May 23, 2026 at 8:21 am

    In your example there is no difference but there are cases that you can not use the first one, for example let’t say you have an element as the parameter of a function and you want to find divs inside it, then you have to use the “Find” method.

    function foo(index, el)
    {
        $(el).find("div")...
    }
    

    But when you know the exact path, obviously the second approach is more robus.

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

Sidebar

Related Questions

I was just poking around into some new stuff in C++0x, when I hit
I have been poking around and have been unable to find a standard for
After over a day of poking around with this problem I will see if
This is kinda oddball, but I was poking around with the GNU assembler today
I'm sure this is a common problem, but I just can't seem to find
I'm still relatively new to Django and have just started poking around at Django-CMS,
Just getting my head around Ruby metaprogramming. The mixin/modules always manage to confuse me.
Just like it reads.
While poking around the questions, I recently discovered the assert keyword in Java. At
I am poking at XBRL documents trying to get my head around how 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.