2 - undefined
Este es el código que utilizo:
<html>
<head>
</head>
<body>
<select id=prueba name=prueba onchange='javascript:seleccion();'>
<option value=1>prueba A</option>
<option value=2>prueba B</option>
<option value=3>prueba C</option>
<option value=4>prueba D</option>
</select>
<br><br>
<input type=text id=texto name=texto value=''>
</body>
</html>
<script language=javascript>
function seleccion()
{
var pprueba=document.getElementById("prueba");
var ptexto=document.getElementById("texto");
ptexto.value=pprueba.value + ' - ' + pprueba[pprueba.value-1].text;
}
</script>
Si pueden ayudarme les agradeceria de antemano...
![Pensando](http://static.forosdelweb.com/fdwtheme/images/smilies/scratchchin.gif)