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:
Louis Pilfold 2014-10-08 10:47:31 +01:00
parent c7c1734b44
commit 9eea452005

View File

@ -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})