Bug Tracker

Modify

Ticket #5900 (closed bug: invalid)

Opened 3 years ago

Last modified 3 years ago

eq Selector not selecing hidden div's?

Reported by: Japhex Owned by:
Priority: major Milestone: 1.4.1
Component: unfiled Version: 1.4
Keywords: Cc:
Blocking: Blocked by:

Description

Hi guys,

I've just started using jQuery 1.4 and i'm trying to use the eq() selector. I Have a containing div, with 8 children, each div's. The first div is shown and the others are hidden. On pageload i'm attempting to do something similar to $('div div:eq(4)')....

This doesn't seem to work, however when i append it to $('div div:eq(0)')....it seems to select the first div fine.

Is this because the eq selector no longer works for hidden elements?

I'm a bit confused as i'm sure it worked before, or maybe there is a bug somewhere else, however i would have thought if it can select the first div and i'm not experiencing any other problems, maybe this is the issue itself?

Thanks guys

Jamie

Change History

comment:1 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

There's no test case attached here so I am not sure what is going on. It might be best to start on the forum to see if anyone can help there.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.