growth Posted June 2, 2006 Share Posted June 2, 2006 I am using the code below, but the command focus() doesn´t work. Why?function ValidaCEP(field) { if (field.lenght != 8) { alert ("O CEP deve conter 8 dígitos!"); document.AlteraClienteForm.field.focus(); return false; } return true;}Thank you. Link to comment Share on other sites More sharing options...
Jack McKalling Posted June 2, 2006 Share Posted June 2, 2006 Don't double post, see the other topic Link to comment Share on other sites More sharing options...
aspnetguy Posted June 2, 2006 Share Posted June 2, 2006 Closing...this is a double post plus it is in the wrong forum. Link to comment Share on other sites More sharing options...
Recommended Posts