1
I’m trying to create a notepad, and it stores the data in Localstorage, however, I cannot access the value that would be typed by the user, only what is already between the Textarea tag. I would like to take the value of the textarea, when the user type it, and display it somehow.
> HTML
<textarea id="txtar">
o console só consegue me retornar o valor escrito no documento, quando eu preciso ter acesso ao valor digitado no campo do TextArea
</textarea>
>JAVASCRIPT
console.log(
document.getElementById('txtar').value
)
You can explain better what you want to happen and what’s happening?
– Sergio