Skip to content

APIs for the text field selections in IE 8 and older

License

GPL-3.0, MIT licenses found

Licenses found

GPL-3.0
LICENSE-GPL
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

devote/selection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

APIs for the text field selections

//Selects everything in the text field.
element.select()

//Returns the offset to the start of the selection.
//Can be set, to change the start of the selection.
element.selectionStart [ = value ]

//Returns the offset to the end of the selection.
//Can be set, to change the end of the selection.
element.selectionEnd [ = value ]

//Changes the selection to cover the given substring.
element.setSelectionRange(start, end)

Connect at the page as shown in the example below:

<!--[if lte IE 8]><script type="text/javascript" src="selection.htc"></script><![endif]-->

About

APIs for the text field selections in IE 8 and older

Resources

License

GPL-3.0, MIT licenses found

Licenses found

GPL-3.0
LICENSE-GPL
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published