Just completed a todolist tutorial. When submitting the form the input field doesn\'t clear.
After trying both:
document.getElementById(\"todo-
These solutions are good but if you want to go for less work then you can use $refs
$refs