Skip to content

Latest commit

 

History

History
24 lines (12 loc) · 337 Bytes

Readme.md

File metadata and controls

24 lines (12 loc) · 337 Bytes

text

Cross-browser DOM text manipulation. Don't worry about textContent vs innerText again.

Installation

$ component install matthewp/text

API

var text = require('text');

text(el)

Retrieve the text for the given element.

text(el, val)

Set the text for the given element to val.

License

MIT