Latest web development tutorials

HTML DOM Input Text select () method

Input Text Object Reference Input Text Object

Examples

Select the contents of the text field:

document.getElementById ( "myText") select ().;

try it"


Definition and Usage

select () method is used to select the contents of the text field.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support select () method.


grammar

textObject .select ()

parameter

None.

Technical details

return value: No return value


Input Text Object Reference Input Text Object