Jichao
Jichao

Reputation: 41835

jQuery: hidden visibility selector does not work in Firefox 3.6

<html>
    <script src="../jquery.js" type="text/javascript"></script>
    <body>
    </body>
    <script type="text/javascript">
        $(":hidden").show();
    </script>
</html>

Firefox 3.6 would show $(":hidden").show();, but IE 8.0 works fine. Is this a bug?

PS: I'm using jquery 1.4.2.

Thanks.

Upvotes: 0

Views: 452

Answers (1)

alex
alex

Reputation: 490433

Probably because it is outside the closing body tag, i.e. </body>.

Why is it there?

Upvotes: 2

Related Questions