Modify ↓
Ticket #813 (closed enhancement: invalid)
Enhance filter(Function) to pass index
| Reported by: | joern | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | core | Version: | |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
By passing the index as an argument to the filter callback, you could do something like this:
$(...).filter("id", function(i) {
return "foobar" + i;
});
Can be quite useful (see mailing lis, "Update to 1.1 question" by Olaf Bosch) and should be very easy to implement.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

already supported