Ver Mensaje Individual
  #1 (permalink)  
Antiguo 02/03/2009, 05:57
Frankedeke
 
Fecha de Ingreso: marzo-2009
Mensajes: 12
Antigüedad: 15 años, 2 meses
Puntos: 0
Campo obligatorio en tabla

Hola a todos, desde la más absoluta ignorancia estoy buscando un código que me ayude a hacer obligatorios unos campos pero todo lo que encuentrop se refiere a formularios, ¿como puedo hacerlo con los campos de una tabla?

Alguien me puede ayudar con esto.

Mil gracias.

Este es el código html:

<div align="left" class="Estilo7">
<table width="758" border="0">
<tr>
<td width="152" class="Estilo7"><div align="right" class="Estilo7"><span class="Estilo9"><strong class="Estilo7">*Nombre</strong>:</span></div></td>
<td class="Estilo7"><input name="NOMBRE" type="text" class="Estilo7" id="NOMBRE" size="50" /></td>
<td class="Estilo7"><div align="right" class="Estilo8">*NIF/CIF/NIE:</div></td>
<td class="Estilo7"><input name="NIF" type="text" class="Estilo7" id="NIF" size="9" maxlength="9" /></td>
</tr>
<tr>
<td class="Estilo7"><div align="right" class="Estilo7"><strong>*Apellidos/Raz&oacute;n Social</strong>: </div></td>
<td class="Estilo7"><input name="APELL" type="text" class="Estilo7" id="APELL" size="50" /></td>
<td class="Estilo7">&nbsp;</td>
<td class="Estilo7">&nbsp;</td>
</tr>
<tr>
<td class="Estilo7"><div align="right" class="Estilo7">Direcci&oacute;n:</div></td>
<td class="Estilo7"><input name="DIRECCION" type="text" class="Estilo7" id="DIRECCION" size="50" /></td>
<td class="Estilo7"><div align="right" class="Estilo7">Provincia:</div></td>
<td class="Estilo7"><input name="PROVINCIA" type="text" class="Estilo7" id="PROVINCIA" size="30" /></td>
</tr>
<tr>
<td class="Estilo7"><div align="right" class="Estilo7">Localidad:</div></td>
<td class="Estilo7"><input name="LOCALIDAD" type="text" class="Estilo7" id="LOCALIDAD" size="50" /></td>
<td class="Estilo7"><div align="right" class="Estilo7">C.P.:</div></td>
<td class="Estilo7"><input name="CP" type="text" class="Estilo7" id="CP" size="5" maxlength="5" /></td>
</tr>
<tr>
<td class="Estilo7"><div align="right" class="Estilo7">Tel&eacute;fono:</div></td>
<td width="268" class="Estilo7"><input name="TELEFONO" type="text" class="Estilo7" id="TELEFONO" size="10" maxlength="9" /></td>
<td width="100" class="Estilo7"><div align="right" class="Estilo8">*M&oacute;vil:</div></td>
<td width="220" class="Estilo7"><input name="MOVIL" type="text" class="Estilo7" id="MOVIL" size="10" maxlength="9" /></td>
</tr>
<tr>
<td class="Estilo7"><div align="right" class="Estilo8">*Email:</div></td>
<td colspan="3" class="Estilo7"><input name="EMAIL" type="text" class="Estilo7" id="EMAIL" size="30" /></td>
</tr>
<tr>
<td class="Estilo7">&nbsp;</td>
<td colspan="3" class="Estilo7"><label></label></td>
</tr>
</table>
</div>