title: Jquery - Validator error Cannot read property 'call' of undefined
body: <p>I am trying to validate a form using jquery's validate function. When I trigger the .valid() function, I get a 'Cannot read property call of undefined.</p>
  
  <pre><code>&lt;script&gt;
  $("#form1").validate({
      rules: {
          EditSubName: {
              required: true, 
          }, 
          EditSubStreetNumber: {
              required: true, 
          },
          EditSubStreetName: {
              required: true  
          },
          EditSubSuburb: {
              required: true, 
          },
          EditSubState: {
              required: true,
              lettersonly: true,  
          },
          EditSubPostcode: {
              required: true, 
          },
          EditSubEmail: {
              email: true,    
          }
      },
  
      errorPlacement: function(error,element) {
           return true;
      },
      highlight: function(element) {
          $(element).closest("input")
          .addClass("textbox_001_err")
          .removeClass("textbox_001");
      },
      unhighlight: function(element) {
          $(element).closest("input")
          .removeClass("textbox_001_err")
          .addClass("textbox_001");
      },  
      submitHandler: function(form) {
          alert('Submitting Entered');
          //Update only
              if($("#radiono").prop("checked") == true)
              {
                  alert('Entered Radio No');
                    $(".blackout").css("display", "none");
                     $.ajax({
                      url: 'save/saveSubjectonly.asp',
                      type: "POST",
                      data: {
                          SubjectID: $('#DefSubID').val(),
                          name: $('#EditSubName').val(),
                          dob: $('#EditSubDOB').val(),
                          email: $('#EditSubEmail').val() ,
                          telephone: $('#EditSubTelephone').val() ,
                          mobile: $('#EditSubMobile').val() ,
                          fax: $('#EditSubFax').val() ,
                          streetnumber: $('#EditSubStreetNumber').val() ,
                          streetname: $('#EditSubStreetName').val() ,
                          suburb: $('#EditSubSuburb').val() ,
                          postcode: $('#EditSubPostcode').val() ,
                          state: $('#EditSubState').val() ,
                          notes: $('#EditSubjectNotes').val(),
                          activalue: $('input:checkbox:checked').val(),
                          companyname: $('#EditCompanyName').val()
                      },
                      success: function(result){
  
                              //location.reload()
  
                      }
                  });
  
              }; 
              //Made changes for all
              if($("#radioyes").prop("checked") == true)
              {
                      $(".blackout").css("display", "none");
                      $.ajax({
                      url: 'save/saveSubjectandupdate.asp',
                      type: "POST",
                      data: {
                          SubjectID: $('#DefSubID').val(),
                          name: $('#EditSubName').val(),
                          dob: $('#EditSubDOB').val(),
                          email: $('#EditSubEmail').val() ,
                          telephone: $('#EditSubTelephone').val() ,
                          mobile: $('#EditSubMobile').val() ,
                          fax: $('#EditSubFax').val() ,
                          streetnumber: $('#EditSubStreetNumber').val() ,
                          streetname: $('#EditSubStreetName').val() ,
                          suburb: $('#EditSubSuburb').val() ,
                          postcode: $('#EditSubPostcode').val() ,
                          state: $('#EditSubState').val() ,
                          notes: $('#EditSubjectNotes').val(),
                          activalue: $('input:checkbox:checked').val(),
                          companyname: $('#EditCompanyName').val()
                      },
                      success: function(result){
                              alert('Success');
                              //location.reload()
  
                      }
                  });
              } 
      },
  });
  &lt;/script&gt; 
  </code></pre>
  
  <p>I am not sure as to why this is happening. I know that it does not go into the SubmitHandler because none of the alert message trigger. </p>