Ver Mensaje Individual
  #3 (permalink)  
Antiguo 26/08/2009, 17:20
Avatar de tampon
tampon
 
Fecha de Ingreso: julio-2009
Mensajes: 420
Antigüedad: 14 años, 9 meses
Puntos: 0
Respuesta: Valor de checkbox a input

Hola zerokilled gracias por tu comentario, lo realice pero no me funciono mira este es mi codigo completo:

Código html:
Ver original
  1. <script language="JavaScript">
  2. function concepto(valor) {
  3.   var d = document.all;
  4.     d.registroConcepto.value += valor + ", "
  5. }
  6. </head>
  7. <p>Valor 1 <input type="checkbox" value="valor 1" onClick="concepto(this.value)" /></p>
  8. <p>Valor 2 <input type="checkbox" value="valor 2" onClick="concepto(this.value)" /></p>
  9. <textarea readonly="true" id="registroConcepto"></textarea>
  10. </body>
  11. </html>