[jQuery] Confirm password equalTo function of Validate plugin are not working properly in Firefox3.0.10 and Firefox2.0

[jQuery] Confirm password equalTo function of Validate plugin are not working properly in Firefox3.0.10 and Firefox2.0


Is there any body known about this problem?
My code:
//js code
“data[User][password]“: {
required: true,
minlength: 6,
maxlength: 15
},
“data[User][confirmPassword]“: {
required: true,
minlength: 6,
maxlength: 15,
equalTo: “#UserPassword”
},
//code end
The error happened at line 1040 of jquery.validate.js
//code
equalTo: function(value, element, param) {
return value == $(param).val();
}
//end
The ‘$(param).val()’ here is always empty. I test this on Chrome, it
works fine there.