title: get changing value from readonly textarea by javascript
body: <p>I have a <code>readonly</code> textarea which its value keep changing. Now I want the page keeps updating its value and return the result if it matches with the provided string or not. Here is what I tried but it's not working</p>
  
  <pre><code>var string = "This is my house";
  
      $('#textarea').bind('input', function() { 
  
      if ($(this).val() === string.trim()) {
          $('#message').html('matching').css('color', 'green');       
      } else $('#message').html('not matching').css('color', 'red');
  });
  </code></pre>