@f/focus-element
1.0.0 • Public • Published
focus-element
Set the focus on a particular DOM element
Installation
$ npm install @f/focus-element
Usage
var focus = require('@f/focus-element')
function onClick (node) {
focus(node.querySelector('input'))
}
API
focusElement(node)
-
node
- The DOM node you want to focus
Returns: void
License
MIT
Readme
Keywords
nonePackage Sidebar
Install
Weekly Downloads