quick one for ya: my boss asked me to write a script that will verify that your confirmation password is the same as the password that you entered. simple enough. however, he wants the onBlur event to check those 2 fields and returnFocus to the first field if the entries do not match. for example, you have the following form:
name:
e-mail address:
username:
password:
re-enter password:
cc#:
exp. date:
so the customer fills in their name, e-mail, username, password and re-enters password. now upon click to the next field(or tabbing to the next field), the 2 passwords are compared. if they match, nothing happens. if they do not match, the customer receives an alert and the cursor is automatically returned to the password field. again, my boss doen't want much does he. i'm still working on this, but so far, no luck. any help at all would be greatly appreciated. thanks to all!
name:
e-mail address:
username:
password:
re-enter password:
cc#:
exp. date:
so the customer fills in their name, e-mail, username, password and re-enters password. now upon click to the next field(or tabbing to the next field), the 2 passwords are compared. if they match, nothing happens. if they do not match, the customer receives an alert and the cursor is automatically returned to the password field. again, my boss doen't want much does he. i'm still working on this, but so far, no luck. any help at all would be greatly appreciated. thanks to all!