jquery - What are the differences between using .first() and .eq(0)? -


this question has answer here:

what difference between using these 2 methods retrieving first element in collection?

taken live source code of jquery 1.7.1:

,first:function(){return this.eq(0)},last:function(){return this.eq(-1)} 

so suspected .first() wrapper calling .eq().

conclusion: no difference whatsoever. :)


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -