Bug Tracker

Changes between Version 2 and Version 3 of Ticket #7711, comment 1


Ignore:
Timestamp:
Dec 6, 2010, 9:31:50 AM (10 years ago)
Author:
jitter
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7711, comment 1

    v2 v3  
    33Also the api is specified as `.last()` (note how there is no parameter to this method, the same holds for `.first()`).
    44
    5 So as you can see from the documentation the `last()` method doesn't accept any parameters it just returns a new jQuery object containing exactly one element (the last one from the set of the jQuery object you call it on).
     5So as you can see from the documentation the `last()` method doesn't accept any parameters it just returns a new jQuery object containing exactly one element (the last one from the set of the jQuery object you call it on). This is way you get the same result twice, the two calls are identical as the parameter gets ignored.
    66
    77[http://jsfiddle.net/jitter/5WMYf/ live test case]