jquery first child of variable code example Example: jquery first child $( "li" ).first().css( "background-color", "red" );