Ver Mensaje Individual
  #1 (permalink)  
Antiguo 23/07/2009, 15:53
[email protected]
 
Fecha de Ingreso: octubre-2005
Mensajes: 405
Antigüedad: 18 años, 7 meses
Puntos: 1
cambiar foco al modificar valor.

Hola a todos. No soy experto y la verdad se me ha presentado el siguiente problema y necesito saber como solucionarlo y que mejor que ustedes.
tengo un formulario donde:
Sólo cuando modifico el campo cantidad definidom ya con valor, debo saltar directamente al campo observa para explicar porque la modificación.
este es el codigo del formulario, al parecer es solo modificar el foco pero desconozco el tema.
Me podrian ayudar al respecto, gracias

Código PHP:
<?
// Otros datos
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin t&iacute;tulo</title>
</head>

<body>
<table width="100%" border="1" cellspacing="0" cellpadding="2">
  <tr>
    <td width=30% align=center>Cantidad</td>
    <td width=70% align=center>Observación</td>
  </tr>
<form id="form1" name="form1" method="post" action="modificadatos.php">
  <tr>
    <td width=30% align=center><input name="cantidad" type="text" id="canti" value="2" size="10" maxlength="10"/></td>
    <td width=70% align=center><input name="observa" type="text" id="obser" size="50" maxlength="50" />
      &nbsp;</td>
  </tr>
  <tr>
    <td width=30% align=center><input name="cantidad" type="text" id="canti" value="10" size="10" maxlength="10"/></td>
    <td width=70% align=center><input name="observa" type="text" id="obser" size="50" maxlength="50" />
      &nbsp;</td>
  </tr>
  <tr>
    <td colspan="2" align=center><input name="procesa" type="submit" value="Procesar" />
    </td>
  </tr> 
  </form> 
</table>
</body>
</html>