I have a textarea which changes value dynamically. For instance on events like this:
$('textarea').click(function(){
$(this).val('some value');
});
I would like to alert each time the value changes:
$('textarea').on("input propertychange",function(){
alert('he');
});
This doesn't work. I also tried Jquery change
and document.querySelector('textarea').addEventListener('propertychange'
and other things nothing seems to function. What else can I try?