jQuery :firstreduces the set of matched elements to the first in the set.
In other words, you get the first item matching div.element.
To do the same in simple javascript, all you have to do is call querySelectorwithout Allpart
var first = li.querySelector('div.element');
querySelector ,
, , , li , querySelector , jQuery find().
li , , ,
var first = li[0].querySelector('div.element');