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

python - Setting ctypes.Structure default values -

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

java - HTTP Status 500 - No data type for node: org.hibernate.hql.internal.ast.tree.IdentNode -