
21/04/2009, 11:24
|
 | | | Fecha de Ingreso: abril-2009 Ubicación: monterrey
Mensajes: 81
Antigüedad: 15 años, 11 meses Puntos: 0 | |
Respuesta: Como validar un campo </td>
<td colspan="6" align="center">
<input name="agregar" type="submit" id="agregar" value=" Agregar ">
</td>
<td width="13%"></td>
</tr>
</table>
<INPUT TYPE="submit" value="Insertar">
<script language="JavaScript">
function no() {
var jeacp = document.jeacp;
if (jeacp.nom_clien.value == "" || jeacp.serie.value == "") {
alert("Los campos txt1 y text7 son obligatorios");
return false;
if (jeacp.serie.value == "") {
jeacp.serie.focus();
}
else {
jeacp.nom_clien.focus();
}
}
else {
alert("El campo " + jeacp.serie.value + " a sido ingresado");
}
}
</script> TODO LO PUSE ADENTRO DEL FORM |