title: how to limit the text been pasted via mouse click in a textarea using jQuery?
body: <p>we have a <strong>textarea</strong> and it should allow only 300 char's. we are able to control it via any <strong>keyboard press event</strong> using</p>
  
  <pre><code>onkeydown="limitText(this,300);" 
  onkeyup="limitText(this,300);
  </code></pre>
  
  <p>where <code>limitText</code> is as follows </p>
  
  <pre><code>limitText = function (limitField, limitNum) {
      if (limitField.value.length &gt; limitNum) {
          limitField.value = limitField.value.substring(0, limitNum);
      }
  },
  </code></pre>
  
  <p>But we are unable to control <strong>mouseClick</strong> paste via this....Please share any idea on this.
  Please Note: i checked few solutions on internet but couldnt solve. i know its a small issue, but as am new to <strong>jQuery</strong> (infact to the whole web world), am unable to ping at the right place.....</p>