Looks like there is no element with the id "UserPassword". Jörn
On Mon, May 11, 2009 at 1:51 PM, Joshua <josh...@gmail.com> wrote: > > 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. >