hanks for the reply.
I got this anwer on a previous question. (very helpfull, cause a few
days ago i did not know binding  even existed)
So i understand that i have to bind my new form to my validation
script.
But i cant get it working this time.

I have tried to validate just one input for an easier example.
This is wat i made of it:

         $('#nieuwespeler').click(function(){
            //alert("Nieuwe speler! howra"); Got this alert
                        var toLoad = 'forms/registratie.php';
      $('#content').hide('slow',loadContent); // fast, slow, normal or
milliseconden??
      $('#load').remove();
      $('#content').append('<span id="load">LOADING...</span>');
      $('#load').fadeIn('slow');
      function loadContent() {
           $('#content').load(toLoad,'',showNewContent())
      }
      function showNewContent() {
           $('#content').show('slow',hideLoader)
      }

      function hideLoader() {
           $('#load').fadeOut('slow');
      }

                        $("#signupForm").validate({
                     rules:{
                              firstname: "required",
                              username:
                                                {
                                       required: true,
                                       minlength: 2}
                                 }
                        });



            return false;
   });


I have added above code in my document ready part.
The signup form does appear, ut when i submit this form, without
filling in anything, it submits without validation.

My question is: What is wrong with the last part, where i try to bind
the validation to my form?
Validation does work, when including this form directly in the page,
but not when loading afterwards..
Apperently i am binding the wrong way, but just cant see what is wrong
with it.
Please??

Reply via email to