Hi,
I'm working with JQuery and i'm running into this strange (or perhaps stupid) error.
In my HTML I have:
<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) {
// this works
if (o.value == $("#id_password").val()) {
// this returns "undefined"
alert(o.id)
...
}
why?