Ver Mensaje Individual
  #2 (permalink)  
Antiguo 15/03/2006, 10:19
Avatar de pinchoso
pinchoso
 
Fecha de Ingreso: octubre-2005
Ubicación: Barcelona
Mensajes: 177
Antigüedad: 18 años, 7 meses
Puntos: 0
Hola Moncherote,

a ver si te va bien:
Código:
<html>
<head>
<script language="javascript">
function fill() {
if (document.form1.f2.value=="") {
document.form1.f2.value = document.form1.f1.value
}
if (document.form1.f3.value=="") {
document.form1.f3.value = document.form1.f1.value
}
}
  </script>
</head>
<body>
<form method="post" name="form1">
  <input name="f1" onchange="fill()"><input
 onclick="document.form1.f1.value=''" type="checkbox"><br>
  <input name="f2"><input
 onclick="document.form1.f2.value=''" type="checkbox">
  <br>
  <input name="f3"><input
 onclick="document.form1.f3.value=''" type="checkbox">
</form>
</body>
</html>
Saludos!
__________________