0.1.2 • Published 9 years ago
jquery.selection v0.1.2
jquery.selection
jQuery plugin for handling selections.
Features
- Save selection using
saveSelection
method. - Restore selection using
restoreSelection
method.
Dependencies
- jquery.js (>= 2.1.0)
Examples
var textarea = $("textarea:focus");
textarea.saveSelection();
textarea.blur();
textarea.restoreSelection();
textarea.hasSelection();
License
Copyright (c) 2013-2014 Mateus Maso. Released under an MIT license.