Skip to main content

.get()

Variations

.get( ): array<Element>

Retrieve all of the elements matched by the DoMini object

for ( el of $( "p" ).get() ) {
console.log( el.innerText );
}

.get( Int n ): Element|null

Retrieve one of the elements matched by the DoMini object

console.log( $( "p" ).get(0).innerText );