+ 1
Web playground querySelector and getElement is not working
my code look like: INPUT ------------------------------ tag input, id = "my-in". const in = document getElementById "my-in" console log in OUTPUT ------------------------------ {} why?
1 Antwort
+ 3
const inp = document.getElementById("my-in");
btn = () => {
console.log(inp.value);
}