goog.dom.selection
Functions
getEnd( textfield ) → number
number
Returns the place where the selection ends inside a textarea or a text input
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
|
Returns the start and end points of the selection inside a textarea or a text input.
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
|
getStart( textfield ) → number
number
Return the place where the selection starts inside a textarea or a text input
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
|
getText( textfield ) → string
string
Returns the selected text inside a textarea or a text input
Parameters |
| ||||
---|---|---|---|---|---|
Returns |
|
setCursorPosition( textfield, pos ) → void
void
Sets the cursor position within a textfield.
Parameters |
|
---|
setEnd( textfield, pos ) → void
void
Sets the place where the selection should end inside a text area or a text input
Parameters |
|
---|
setStart( textfield, pos ) → void
void
Sets the place where the selection should start inside a textarea or a text input
Parameters |
|
---|
setText( textfield, text ) → void
void
Sets the selected text inside a textarea or a text input
Parameters |
|
---|