Answers for "jquery first child"

0

firstElementChild jquery equivalent

$('#myList > li:first-child');
// or
$('#myList').children('li:first-child');
// or
$('#myList > li').first();
// or
$('#myList').children().first();
// and so on
Posted by: Guest on August-06-2020
5

jquery first child

$('div:first-child')
Posted by: Guest on April-16-2020
1

jquery first child

$( "li" ).first().css( "background-color", "red" );
Posted by: Guest on October-26-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language