jquery first child
$('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" );
Also in JavaScript:
- javascript download current html page
- jstl spring taglib
- number pyramid in javascript
- javascript if undefined
- count word and space in text javascript
- toastify js
- jquery ajax $.post with data
- math.max in javascript
- create react app in existing folder
- adonis js
- [JsonConverter(typeof(StringEnumConverter))] on list of enums
- v-for vue
- js generate random list of names with for loop
- javascript redirect to homepage
- codemirror get object from textarea
- how to create monorapo project in angular 8
- how to add google map in react js
- javascript variables
- jquery get version
- javascript stringify blob
- jquery enforce important
- add new key value pair to object javascript
- how to convert entered number into currency in words in javascript
- create node project