17/12/2007, 13:50
|
| | | Fecha de Ingreso: noviembre-2007 Ubicación: Knocking the Death Door..
Mensajes: 368
Antigüedad: 17 años, 2 meses Puntos: 3 | |
Re: Llamada a función javascript en PHP En todas estas opciones lo unico que tendrias que hacer es colocar la funcion de Retrieve que te mande anteriormente y es seria todo.. no se si me entiendes..
<html>
<head>
<script type="text/javascript">
function getIndex()
{
var x=document.getElementById("mySelect");
alert(mySelect.options[mySelect.selectedIndex].text)
}
</script>
</head>
<body>
<form>
Select your favorite fruit:
<select id="mySelect">
<option>Apple</option>
<option>Orange</option>
<option>Pineapple</option>
<option>Banana</option>
</select>
<br /><br />
<input type="button" onclick="getIndex()" value="Alert index of selected option">
</form>
</body>
</html>
Me avisas.. salu2... |