![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
09/08/2006, 04:56
|
| | Fecha de Ingreso: diciembre-2005 Ubicación: Barcelona
Mensajes: 1.428
Antigüedad: 19 años, 1 mes Puntos: 15 | |
Recoger valor no numerico de una lista Hola a todos
Tengo esta funcion para recoger valores de una lista.
El Problema es que los numeros funciona pero cuando selecciono el texto NO.
Que me está faltando??
function FuncionNumWin(obj)
{
valor=obj.options[obj.selectedIndex].text;
alert(valor)
}
de esta lista
<select name="select" onChange="FuncionNumWin(this)">
<option selected>1</option>
<option>texto</option>
<option>2</option>
</select> |