Ver Mensaje Individual
  #9 (permalink)  
Antiguo 16/04/2009, 15:01
Avatar de Triby
Triby
Mod on free time
 
Fecha de Ingreso: agosto-2008
Ubicación: $MX->Gto['León'];
Mensajes: 10.106
Antigüedad: 15 años, 8 meses
Puntos: 2237
Respuesta: Guardar datos de select multiples en bd

Ok, podrias probar actualizando las opciones por ID:

Código html:
Ver original
  1. <!-- En el Javascript -->
  2. <script type="text/javascript">
  3. function ponTalla(formu) {
  4.     var laTallon = formu.tallon.selectedIndex;
  5.     var laTallita = formu.tallita.selectedIndex;
  6.     // Obtienes el select por medio de su ID
  7.     talla = document.GetElementById('talla');
  8.     talla.lenght = tallas[laTallon][laTallita].length;
  9.     for (i=0; i<talla.lenght; i++) {
  10.        talla.options[i].text = tallas[laTallon][laTallita][i];
  11.    }
  12. }
  13.  
  14. <!-- En el formulario agreas ID al select -->
  15. <select name="talla[]" id="talla" size="2" multiple="multiple"></select>
__________________
- León, Guanajuato
- GV-Foto