Skip to content

jQuery plugin to manipulating cursor inside text and textarea fields

License

Notifications You must be signed in to change notification settings

piotrooo/jquery-cursor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

jQuery cursor

jQuery plugin to manipulating cursor inside text and textarea fields

Usage

setAtTheBegin

Set cursor at the begining in text field.

$('textarea').setAtTheBegin().focus();

setAtTheEnd

Set cursor at the end of text field.

$('textarea').setAtTheEnd().focus();

setRange

Select text in user defined range. If range is incorrect throw exception.

$('textarea').setRange(13, 17).focus();

setAtThePosition

Set cursor on the position.

$('textarea').setAtThePosition(13).focus();

About

jQuery plugin to manipulating cursor inside text and textarea fields

Resources

License

Stars

Watchers

Forks

Packages

No packages published