if (form.campo.value.length < 3) { ... }