Added JS DOM element selector snippets
So not everyone uses jQuery. Who knew? I've added snippets for the main vanilla JS DOM element selector snippets.
This commit is contained in:
parent
c7c1734b44
commit
9eea452005
@ -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})
|
||||
|
Loading…
Reference in New Issue
Block a user