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
11/1/2015 2:41:31 PM
Downloads
384

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