neverlane
13.07.2023, 11:27
потому что значение инпута храниться в поле value
HTML:
Document
погнали
function register() {
const output = document.querySelector('#output');
const input = document.querySelector('#usernameInput');
output.textContent = `всем привет, usernameInput.value =${input.value}`
}
https://forum.antichat.xyz/attachments/28341316/
HTML:
Document
погнали
function register() {
const output = document.querySelector('#output');
const input = document.querySelector('#usernameInput');
output.textContent = `всем привет, usernameInput.value =${input.value}`
}
https://forum.antichat.xyz/attachments/28341316/