diff --git a/snippets/javascript/javascript.snippets b/snippets/javascript/javascript.snippets index bfc53ee..416be9b 100644 --- a/snippets/javascript/javascript.snippets +++ b/snippets/javascript/javascript.snippets @@ -205,3 +205,11 @@ snippet prop configurable : ${0:boolean} } ); +snippet by. + ${document}.getElementsByClassName('${class name}) +snippet by# + ${document}.getElementById('${element ID}) +snippet qs + ${document}.querySelector('${selectors}) +snippet qsa + ${document}.querySelectorAll('${selectors})