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 -

c - Defining floating point constants, how many digits are useful? -