jQuery plugin for handling selections.
- Save selection using
saveSelection
method. - Restore selection using
restoreSelection
method.
- jquery.js (>= 2.1.0)
var textarea = $("textarea:focus");
textarea.saveSelection();
textarea.blur();
textarea.restoreSelection();
textarea.hasSelection();
Copyright (c) 2013-2014 Mateus Maso. Released under an MIT license.