1.0.0 • Published 10 years ago
@f/set-value v1.0.0
set-value
Set the value of an input-type DOM node while preserving the user's selection.
Installation
$ npm install @f/set-valueUsage
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
License
MIT
1.0.0
10 years ago