mateusmaso / jquery.selection

jQuery plugin for handling selections

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

jQuery plugin for handling selections

License:MIT License


Languages

Language:JavaScript 90.7%Language:HTML 9.3%