javascript input on focus select all code example
Example: js select all
// This will select all of the text in the textarea or input called element
element.select();
// This will select all of the text in the textarea or input called element
element.select();