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
Post a Comment