mirror-txt.js
v0.1.3
Published
An NPM package to make mirroring textfields easier
Downloads
2
Readme
Mirror.js
NPM package to make mirroring textfields easier
Include with npm install mirror-txt.js
How to use:
Compatable text inputs are <textarea>
and <input type="text">
Compatable text fields are anything with either a value
or textContent
attribute
//mirror mode
mirror({mainField: /*Main text input ID*/, additionalFields: [/*Array of IDs to mirror to*/], options?{clone: false}})
//clone mode
mirror({mainField?: /*will be ignored if clone = true*/ , additionalFields: [/*Array of IDs to be cloned to/from*/], options{clone: true}}})