title: How to prevent user from entering text into a form field using JQuery?
body: <p>I want to prevent the user from entering more than 100 characters into a textarea. I already wrote the code that will detect when the user's post reaches 100 characters. But I have no idea how to prevent him from typing any more beyond that point:</p>
  
  <pre><code>$(document).ready(function(){
  
     $('.comment').keyup(function(){
         var count = this.value.length;
         if (count &gt; 100) {
  
             // what goes here???
  
         }           
     });
  
  });
  
  
    &lt;textarea class="comment" rows="10" cols="30"&gt;&lt;/textarea&gt;
  </code></pre>