set-value
!Build statustravis-imagetravis-url
!Git taggit-imagegit-url
!NPM versionnpm-imagenpm-url
!Code stylestandard-imagestandard-urlSet the value of an input-type DOM node while preserving the user's selection.
Installation
$ npm install @f/set-value
Usage
var setValue = require('@f/set-value')
setValue(input, 'test')
API
setValue(node, value)
node
- A DOM node that can accept a value (e.g. input, textarea)value
- The new value to set in the field specified bynode
Returns: void