jquery - difference between $('.mydiv').children().last() and $('.mydiv').last() -


is there difference between :

$('.mydiv').children().last()  

and

$('.mydiv').last()? 

which 1 better used when want last children inside div example?

use

$('.mydiv').children().last() 

as $('.mydiv').last() not provide children


Comments

Popular posts from this blog

c++ - list<myClass<int> * > sort -

SoapUI on windows 10 - high DPI/4K scaling issue -

java - why am i getting a "cannot resolve method" error on getApplication? -