I work with jQuery and I come across this strange (or possibly stupid) error.
In my HTML, I:
<input type="password" name="repeatPassword" id="id_repeatPassword" />
And then in my javascript code I have:
validateRepeatPassword($('#id_repeatPassword'));
Unfortunately, in the function "validateRepeatPassword":
function validateRepeatPassword(o) {
if (o.value == $("#id_password").val()) {
alert(o.id)
...
}
why?
Lawrence
source
share