Textarea validation with jQuery
<p>I wish to have input of only letters into a text area in form
It works well with the input fields, can't validate the textarea is it possible with jquery validate ? or what is another alternative 
2) will this block malicious code input (such as xss.js) </p>

<pre><code>      &lt;form action="" method="POST" enctype="multipart/form-data" name="messageForm"&gt;
  &lt;p&gt;name of sender: 
   &lt;input class="input" name="sender" id="sender" value="" size="13"
     maxlength="13" dir="ltr" autocomplete="on" type="text" height="20" minlength="3" required&gt;&lt;br&gt;
   &lt;p&gt;name of receiver: 
      &lt;input class="input" name="receiver" id="receiver" value="" size="13"
     maxlength="13" dir="ltr" autocomplete="on" type="text" height="20" minlength="3" required&gt;&lt;br&gt;
   &lt;p&gt;Message: &lt;br&gt;
     &lt;textarea name="message" id="message"  type="text" value="" rows="5" cols="30" dir="ltr" required&gt;&lt;/textarea&gt;&lt;br&gt;
   &lt;input value="Submit" name="button" alt="submit" onsubmit="" border="0" type="submit" align="absmiddle"&gt;&lt;/p&gt;

 &lt;/form&gt;
&lt;script&gt;
    $("#messageForm").validate();
&lt;/script&gt;
</code></pre>

<p>javascript</p>

<pre><code>$().ready(function () {

    $("#submit").validate({
    rules: {
        sender: {
            required: true,
            minlength: 3,
          lettersonly: true
        },
        receiver: {
            required: true,
            minlength: 3,
            lettersonly: true
        },
        message: {
          required: true,
          minlength: 5,
          maxlength: 30,
          lettersonly: true
        },
      },
     messages: {
                sender: {required:"Please enter your name"},
                receiver:{required: "Please enter receiver name up to 3 characters"},
                message: {required: "Enter your message 3-20 characters"},
          },
 });
</code></pre>

<p>});</p>

<p>when it runs on chrome gives an error on last part: <em>Unexpected identifier</em> </p>