jquery first child

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

$( "li" ).first().css( "background-color", "red" );

Source

Also in JavaScript: