title: Validation JQuery : Uncaught TypeError: Cannot call method 'call' of undefined
body: <p>I always get error </p>
  
  <pre><code>Uncaught TypeError: Cannot call method 'call' of undefined
  </code></pre>
  
  <p>when I type correct email in my form. Custom massages doesn't work too.
  Function <code>?module=auth&amp;amp;action=registration</code> work properly (it returns string 'false' or 'true').</p>
  
  <p>I use this plugin: <a href="http://docs.jquery.com/Plugins/Validation" rel="nofollow">JQuery Validation Plugin</a> .</p>
  
  <p>I think problem is in these files below.</p>
  
  <p><strong>custom.validation.js</strong>:</p>
  
  <pre><code>$(document).ready(function() {
  $("#reg").validate({
  
         rules: {
                 'u1[firstName]': "required",
                 'u2[firstName]': "required",
                 'u1[lastName]' : "required",
                 'u2[lastName]' : "required",
                 'u1[email]' : {
                     "required" : true,
                     "email" : true,
                     "remote" : { 
  
                      url: '?module=auth&amp;action=checkemail',
                      type: "post",
                      data:
                        {
                            'u1[email]': function()
                            {
  console.log($("#email1").val());
                                return $("#email1").val();
                            }
                      }                  
                 },
                 'u2[email]' : "required" 
         },      
         messages: {
                 'u1[firstName]': {
                         required: "My requied text"
                 }
         }    
      }
  });
  });
  </code></pre>
  
  <p>and <strong>form</strong>:
      </p>
  
  <pre><code>&lt;fieldset&gt;
      &lt;label for="imie" &gt;Name:&lt;/label&gt;
      &lt;input type="text" name="u1[firstName]"{if $smarty.post.u1.firstName} value="{$smarty.post.u1.firstName}"{/if}&gt;
      &lt;label for="nazwisko" &gt;Lastname:&lt;/label&gt;
      &lt;input type="text" name="u1[lastName]" {if $smarty.post.u1.lastName} value="{$smarty.post.u1.lastName}"{/if}&gt;
      &lt;label for="adresEmail"&gt;E-mail:&lt;/label&gt;
      &lt;input type="text" name="u1[email]" id="email1" {if $smarty.post.u1.email} value="{$smarty.post.u1.email}"{/if}&gt;
  &lt;/fieldset&gt;
  &lt;fieldset&gt;
      &lt;button type="submit"&gt;Send&lt;/button&gt;
  &lt;/fieldset&gt;
  </code></pre>
  
  <p></p>