js select all text in input on focus 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();