Sabre Spark

Set Caret

Set the caret position in an input.

Option name Type Description
module helper/set-caret.js
Example
setCaret(el, -1);
setCaret(el, 2);