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