08/07/2005, 01:36
|
| Moderador extraterrestre | | Fecha de Ingreso: diciembre-2001 Ubicación: Madrid
Mensajes: 6.987
Antigüedad: 22 años, 4 meses Puntos: 61 | |
_Y de esta forma te funcionará hasta en el Netscape 4.78: Código PHP: <html> <head> <script type="text/javascript" language="JavaScript"> function borrar(i){ if (document['pepote']['check' + i].checked == false) { document['pepote']['total' + i].value = '' ; document['pepote']['cant' + i].value = ''; } else{ document['pepote']['cant' + i].focus(); } } </script> <style> *{font:normal 10px/10px verdana;} </style> <title></title> </head> <body> <form action="javascript:alert('Enviado!')" id="pepote" name="pepote"> <input checked="checked" type="checkbox" name="check1" id="check1" value="1" onclick="borrar(1)" /> Lo compro<br /> 300 x <input type="text" size="5" name="cant1" id="cant1" onkeyup="document.getElementById('total1').value = 300 * this.value;" /> = <input readonly="readonly" type="text" name="total1" id="total1" /><br /> <br /> <input type="submit" value="Enviar" /> </form> </body> </html>
__________________ Cómo escribir
No hay pregunta tonta, sino tonto que quiere seguir en la ignorancia. |