Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 622 Bytes

README.md

File metadata and controls

28 lines (18 loc) · 622 Bytes

jquery.selection Build Status

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.