getElement select all code example
Example 1: javascript select all elements
// example:
document.querySelectorAll('.message');
// syntax:
// document.querySelectorAll('.<class-name>')
Example 2: js select all
// This will select all of the text in the textarea or input called element
element.select();