textarea
support oninput
event, which fires every time you type in it. For example:
<textarea oninput="testFunction()"></textarea>
<script>
function testFunction() {
console.log("input has changed");
}
</script>
This should give you a head start in writing the vanilla JS code you need.