title: Max length of textarea is not working on IE8
body: <p>From research on internet, max length attribute is not working on  IE 8 and 9</p>
  
  <p>To resolve the problem I tried a solution from here , it use with the other function which is for presentation textarea:</p>
  
  <pre><code>//Dynamic append the textarea row
  function do_resize(textArea) {
      while (
          textArea.rows &gt; 1 &amp;&amp;
          textArea.scrollHeight &lt; textArea.offsetHeight
      )
      {
          textArea.rows--;
      }
      while (textArea.scrollHeight &gt; textArea.offsetHeight)
      {
          textArea.rows++;
      }
      textArea.rows++
  }
  
  
  &lt;textarea name="q&lt;%=countNo%&gt;_ans" rows="3" cols="55" maxlength="2000" style="resize: none;" onkeyup="new do_resize(this);" onKeyPress="return ( this.value.length &lt; 2000);"&gt;&lt;/textarea&gt;
  </code></pre>
  
  <p>The problem is , The textarea is not able to input any character after it exceed the 2000 in IE8 9 , but I can still use the copy and paste function which will exceed the textarea limit. How to fix this? thanks</p>