Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

firstElementChild jquery equivalent

  $('#myList > li:first-child');
// or
$('#myList').children('li:first-child');
// or
$('#myList > li').first();
// or
$('#myList').children().first();
// and so on

Source by codepen.io #
 
PREVIOUS NEXT
Tagged: #firstElementChild #jquery #equivalent
ADD COMMENT
Topic
Name
8+6 =