Frontend Development

How can i JS click on copy li tags text elements with each?

Submitted by theabuzer, , Thread ID: 94355

Thread Closed

RE: How can i JS click on copy li tags text elements with each?

#3
Code:
<script>
var tagsLi = document.getElementByTagNameNS('li');

for (const li of tagsLi) {
li.onclick = function() {
enter your code after li element has been clicked
}
}
</script>

Users browsing this thread: 2 Guest(s)