Skip to content

OnVelocity/jquery-textrange

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This jQuery plugin is for easily finding the starting and ending positions of selected text in text fields and textareas. It can also be used to set the selection, and replace the selection with given text (or insert text wherever the cursor is in the text field or textarea).

Methods

Demo

Minified Version

A minified version of this plugin can be generated using Google's Closure Compiler (preferred).

wget http://closure-compiler.googlecode.com/files/compiler-latest.tar.gz
tar -zvxf compiler-latest.tar.gz compiler.jar
wget https://raw.github.com/dwieeb/jquery-textrange/master/jquery-textrange.js
java -jar compiler.jar --js jquery-textrange.js --js_output_file jquery-textrange.min.js

About

A jQuery plugin for getting, setting and replacing the selected text in input fields and textareas.

Resources

License

Stars

Watchers

Forks

Packages

No packages published