document.querySelector


Snippet Details

Shortcut
q
Description
Get a single DOM element by its selector (class or id). Selectors can be chained
Language
javascript
Types
Expansion
Author
Jeremie Corpinot
Upload on
1-11-2015 14:41:31
Downloads
2067

Declarations

ID ToolTip Default
element DOM element's selector selector

Code Output

        document.querySelector("$element$");$end$
    

Download Add to .VSIX Package


comments powered by Disqus

Extension Package

No snippets are added


Languages