Cross-browser text input selection made simple
npm install sell --saveNote that el must be either an <input> element or a <textarea>.
Returns an object like { start: 1, end: 3 } indicating where the selection starts and ends.
Sets text selection on element el to a range p, like the ones returned from sell(el). Note that you can set either start or end to the special 'end' value, in which case el.value.length will be used.
For general-purpose text selection outside of inputs, see seleccion
MIT