I want to have the text value from a inside a element.
html:
If you use eg. "id" you can do it this way:
(function() { let x = document.getElementById("idName"); let y = document.getElementById("liName"); y.addEventListener('click', function(e) { y.appendChild(x); }); })();
TEXT