= document.getElementById('text-field').value
console.log(x)
but this x will not work with click event it will give empty why is that?
Wat?
Ok i got it
I was getting input value in x But on click event i was expecting to have new value but it wont because the x has a value on load
Обсуждают сегодня