Ver Mensaje Individual
  #2 (permalink)  
Antiguo 14/11/2011, 17:18
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: adaptar script para que sea dinamico

Si le das ids unicos a ambos puedes hacerlo:
Código Javascript:
Ver original
  1. function calcular(selId, textId) {
  2.      var select = document.getElementById(selId);
  3.      var option = select[select.selectedIndex].value;
  4.      document.getElementById(textId).value = option;
  5. }

Saludos.