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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T05:10:02+00:00 2026-05-21T05:10:02+00:00

So the honest truth is that I don’t even know what terms I’d search

  • 0

So the honest truth is that I don’t even know what terms I’d search for to get a reasonably targeted search result for this, so I thought I’d hope for a quick response here. The searches I’ve tried (including SO’s related questions) haven’t mentioned this particular issue.

Every browser in my arsenal understands the following jQuery selector and alerts the proper length (2):

alert( jQuery('#course-contents.course-sidebar .folder').length );

But not IE7. It tells me there are zero. On the other hand, this:

alert( jQuery('.course-sidebar .folder').length );

Gives me a result of 2 in both places. What is it about the combination that is giving IE7 fits? Both components are necessary in some places, so I don’t want to just change it. If my syntax is wonky, I’d like to know why.

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-05-21T05:10:03+00:00Added an answer on May 21, 2026 at 5:10 am

    It is a documented IE6/7 bug (again…), as @Peter suggested.

    For a workaround, you might use

    jQuery('.course-sidebar')
        .filter('#course-contents')
        .find('.folder')
        .length
    

    or (using context, less readable)

    jQuery('.folder', jQuery('.course-sidebar').filter('#course-contents')).length
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

To be honest with you I really don't get the relationship that Web Services
To be honest, I do not really know how to name that problem. I'll
to be honest, I don't really know what the small green men in my
So I'll be honest, this is for a homework assignment. I know how to
Well, to be honest it works just for one client, don't really know why.
I am not sure this is even possible to be honest, I am wondering
To be honest, I actually have a solution for this, but Google search finds
To be honest, I don't know much about OCaml's object system. The following snippet
I'm totally new to this and to be honest I'm struggling to even find
To be honest I don't know how to call it, so I'll try 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.