JQuery: hidden does not work in IE8

Since jQuery 1.3.2, in IE7 , $ ("tr.football:hidden"). length returns 8 , however, in IE8 it returns 0 .

Have you ever encountered the same problem? How did you apply this?

Thanks.

+4
source share
2 answers

Looks like an error, check out the forum: jquery error report

+5
source

I suggest upgrading to the latest version of jQuery 1.4.4. There are 4 more versions of jQuery that are ahead of the one you are working on, and I would not want you to try to find a solution to a problem that can be fixed in the latest version of jQuery.

Of course, if the problem still exists after the update, there are other things you can try:

  • Make sure your HTML is validated. JavaScript sometimes has problems with correctly parsing HTML code if it does not meet the standards that were implemented in browsers.
  • See if you can find a workaround, for example, use the "display: none" style selector, or perhaps bind an extra class to your hidden elements.

Here is a link to the Google libraries API. You can directly associate yourself with the latest version of jQuery 1.4.4: http://code.google.com/apis/libraries/devguide.html#jquery

+2
source

Source: https://habr.com/ru/post/1334638/


All Articles