Text Selection API: HTML5

preview_player
Показать описание

Before HTML5 we were using select() method to select the entire text/string present in the input field. We did not have more control to specify the selection start and end points ourselves. With HTML5 text selection API's we could specify selection start and end points.

HTML5 Text Selection API:
selectionStart
selectionEnd
setSelectionRange()

HTML5 and CSS3 Video Tutorial List:
Рекомендации по теме
Комментарии
Автор

thanks, everything is simple and clear

gorbulevsv