javascript set focus and highlight text 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();