By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,747 Members | 1,782 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,747 IT Pros & Developers. It's quick & easy.

Clear form field?

P: n/a
Using this code

if (form.scfmpwd1.value != form.scfmpwd2.value) {
alert( "Password mismatch - Try again" );
form.scfmpwd1.focus();
return false ;
}

And a checkform proceedure I can capture the form before processing if the
user enters enters a typo on one of his/her passwords.

However when using "form.scfmpwd1.focus() to reposition the cursor in the
first password field the field is left with the junk in it. Can I clean out
the data the user entered giving them a chance to start over with blank
fields.

Appreciate any help, thanks

Garry Jones
Sweden
Oct 8 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Garry Jones" <ga*********@morack.sewrote in message
news:eg**********@yggdrasil.glocalnet.net...
Using this code

if (form.scfmpwd1.value != form.scfmpwd2.value) {
alert( "Password mismatch - Try again" );
form.scfmpwd1.focus();
return false ;
}

And a checkform proceedure I can capture the form before processing if the
user enters enters a typo on one of his/her passwords.

However when using "form.scfmpwd1.focus() to reposition the cursor in the
first password field the field is left with the junk in it. Can I clean
out
the data the user entered giving them a chance to start over with blank
fields.

form.scfmpwd1.value = "";
Oct 8 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.