jQuery plugin for handling selections.
- Save selection using
saveSelectionmethod. - Restore selection using
restoreSelectionmethod.
- 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.