jQuery find() – pure JavaScript

jQuery('.selector').find('.nested_selector')

can be written just as

document.querySelector('.selector').querySelector('.nested_selector')

Schreibe einen Kommentar