[Validation] Don't get any error when needed

[Validation] Don't get any error when needed

Hello All,

I just found the plugin named "Validation". After some lookups in the source of a form of the maker as example I thought that it would be easy to implement it. Unfortunately it doesn't, also I can't find any good docs about how I need to make a form with that validation.

This is for so far I have my HTML and such

  1. ${}.ready(function() {
  2. $("#registerForm").validate({
  3. rules: {
  4. gebruikersnaam: {
  5. required: true,
  6. minlength: 3,
  7. maxlength: 25
  8. },
  9. voornaam: {
  10. required: true,
  11. minlength: 3,
  12. maxlength: 25
  13. },
  14.                         },
  15.                         messages: {
  16. gebruikersnaam: {
  17. required: "Je gebruikersnaam is niet ingevuld",
  18. minlength: "Je gebruikersnaam is te kort (minimaal 3)"
  19. },
  20. voornaam: "Je voornaam is niet ingevuld"
  21.                         }
  22.                   });
  23.             });
  24.             </script>
  25.             
  26. <form id="registerForm" method="POST" action="bla.html">
  27. <table cellpadding=0 cellspacing=0 border=0 style="table-layout:fixed" width="341">
  28. <tr>
  29. <td width="150">Gebruikersnaam:</td>
  30. <td width="300" align="center"><input type="text" name="gebruikersnaam" size="25" maxlength="12"></td>
  31. </tr>
  32. <tr>
  33. <td width="150">Voornaam:</td>
  34. <td width="300" align="center"><input type="text" name="voornaam" size="25" maxlength="12"></td>
  35. </tr>

Mind the form close (that is good and such), but what am I doing wrong...? Because I somewhat just match the example of the author (for so far it is explained (which isn't imo))!?!?