30/05/2007, 04:58
|
| | | Fecha de Ingreso: febrero-2005
Mensajes: 994
Antigüedad: 20 años Puntos: 9 | |
Re: Como saber valores seleccionado de un <select> multiple function fun()
{
var sel=ide("sel")
var opt=sel.options
sel.valores=[]
var x=0
for(var n=0;n<opt.length;n++)
{
if(opt[n].selected)
{
sel.valores[x]=[]
sel.valores[x].value=opt[n].value
sel.valores[x].text=opt[n].text
x++
}
}
for(n in sel.valores){alert(sel.valores[n].value+" "+sel.valores[n].text)}
} |