jQuery validation passwords never match...
Hi,
I have this pretty simple html form which has two password fields. It is checked by jQuery Validation Plug-in but then I try to submit it I always get not matching passwords error...
Here is the passwords fields HTML:
- <label>
- <strong>3.</strong> Choose a Password <span>*</span><br />
- <input type="password" class="text" name="password" />
- <em>Must be at least 8 characters long.</em>
- </label>
- <label>
- Verify Password <span>*</span><br />
- <input type="password" class="text" name="confirm_password" />
- </label>
And this the part jQuery Validation Plug-ins rules:
- var validator = $('#signup').validate({
- rules: {
- username: "required",
- password: {
- required: true,
- minlength: 5
- },
- confirm_password: {
- required: true,
- minlength: 5,
- equalTo: "#password"
- },
- email: {
- ......
My mistake must be really obvious but I just can not notice it... any help please?