![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
17/12/2007, 11:41
|
![Avatar de agressor](http://static.forosdelweb.com/customavatars/avatar203215_1.gif) | | | Fecha de Ingreso: noviembre-2007 Ubicación: Knocking the Death Door..
Mensajes: 368
Antigüedad: 17 años, 2 meses Puntos: 3 | |
Re: Ayuda...por favor...valor de un select Tranquila esa es una funcion que ya uso.. pero si lo que queres es que te la ponga a boquita que queres aqui te la mando.. con eso sabras el valor que selecciono..
<html>
<head>
<script type="text/javascript">
function getLength()
{
alert(document.getElementById("mySelect").length);
}
</script>
</head>
<body>
<form>
<select id="mySelect" onChange="getLength()">
<option>Apple</option>
<option>Pear</option>
<option>Banana</option>
<option>Orange</option>
</select>
</form>
</body>
</html> |