Merge pull request #463 from lpil/js-dom-selectors

Added JS DOM element selector snippets
This commit is contained in:
Honza Pokorny 2014-10-09 03:32:35 -03:00
commit ebf6fb2383

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