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

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

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