As to the text of each item ( option) to add the value of its value attribute?

April 19th 20 at 12:44
1 answer
April 19th 20 at 12:46
Solution
document.querySelectorAll('#select option').forEach(n => n.textContent += n.value)

Find more questions by tags JavaScript