Skip to content

mateusmaso/jquery.selection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.