Answers for "element select all"

1

javascript get all select options

var options = document.getElementById('mySelectID').options;
for (let i = 0; i < options.length; i++) { 
  console.log(options[i].value);//log the value
}
Posted by: Guest on August-05-2019
1

js select all

// This will select all of the text in the textarea or input called element
element.select();
Posted by: Guest on December-04-2020

Code answers related to "element select all"

Code answers related to "Javascript"

Browse Popular Code Answers by Language