[jQuery] Validation: Validating 2 password fields (Enter and Re-Enter passwords)

[jQuery] Validation: Validating 2 password fields (Enter and Re-Enter passwords)


Hello,
I am using JQuery validation to validate a password field (among
things). I have 2 fields: The "Enter Password" field where the user
enters his password and a "Re-Enter Password" field where the user
confirms his passwords (used to make sure the user did not make a
typo). How do I validate to make sure the two passwords match. I've
thought of using a function, but I don't have access to both fields in
the same function.
Any help would be appreciated.