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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:20:43+00:00 2026-05-28T05:20:43+00:00

In by below code i am trying to check whether there are any Li

  • 0

In by below code i am trying to check whether there are any Li that is visible. that well help me to determine whether to display some message or not.

but li:visible is not working in IE 7

function MangeEmptyRecordList() {
    var leftPanel = $('#' + firstContainer);
    var rightPanel = $('#' + secondContainer);
    var firstContainerList = leftPanel.find('li:visible');
    if (firstContainerList.length > 0) {
        $("#emptyFirstContainer").hide();
    }
    else {
        $("#emptyFirstContainer").show();
    }
}

what is the alternate of :visible for IE7.

PS: In some situation there are some Li that are invisible.

  • 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-28T05:20:43+00:00Added an answer on May 28, 2026 at 5:20 am

    Are you using the latest version of jQuery, 1.7.1?

    Moreover, “visible” generally refers to visibility:hidden; or opacity:0; although it should refer ti display:none; as well. Where as hide() and show() generally refer to display:none; Although both should work, try the selector :hidden; instead to see if you have any luck.

    Finally, another Stack Overflow discussion mentioned that :visible doesn’t work in functions. Although it was written in 2008, hence it working in all other browsers, but could plausibly be the issue for IE7. There have been several other issues with that selector in the past, but I would assume they’ve been fixed. But again, hopefully :hidden will work.

    If none of those work, there’s several other ways to accomplish the same thing, but with much less elegance. Hopefully one of the above bears some fruit.

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

Sidebar

Related Questions

I am trying to write a program to check that some C source code
In the code below I'm trying to load some images and put them in
I'm trying to write some code that allows me to switch between SQLCE (locally
In the below code I'm trying to loop through each child node and append
In the code below i`m trying to read a list of selected projects and
In the below code, i am trying to reference an external .dll, which creates
I'm trying to get from Line #1 to Line #2 in the below code:
I am trying to map the ReferralContract.AssessmentId property to Referral.Assessment.Id The below code works
The code below is what I am trying to use in order to get
I'm trying to use the code below to send messages via System.Net.Mail and am

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.