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