Bug Tracker

Opened 7 years ago

Closed 7 years ago

#5379 closed enhancement (duplicate)

eq handle -1

Reported by: snowbot3 Owned by:
Priority: minor Milestone: 1.4
Component: core Version: 1.3.2
Keywords: eq Cc:
Blocked by: Blocking:


the eq function works with the argument -2, -3, etc, where $(selector).eq(-2) returns the second from the last element, but $(selector).eq(-1) only returns null or an empty array(not sure which). I would like eq(-1) to return the last Jquery element in the array.

Change History (2)

comment:1 Changed 7 years ago by dmethvin

  • Component changed from unfilled to core
  • Keywords eq added

comment:2 Changed 7 years ago by john

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

Duplicate of #4262.

Note: See TracTickets for help on using tickets.