DEV Community

Discussion on: Javascript DOM Manipulation to improve performance

Collapse
pinguxx profile image
Ivan

it would be nice to have codepens or similar for the examples, this way we can see it running and you will be able to check if the code you are presenting works or not

The last example:

container.value = 'Bye DEVS!';

you are not updating the input but the container, this will update the input

container.querySelector("input").value = 'Bye DEVS!';

Thanks for sharing

Collapse
grandemayta profile image
Gabriel Mayta Author

You're right. I will create a codepen with the examples. Thanks.