Ver Mensaje Individual
  #2 (permalink)  
Antiguo 21/12/2007, 08:33
Avatar de agressor
agressor
 
Fecha de Ingreso: noviembre-2007
Ubicación: Knocking the Death Door..
Mensajes: 368
Antigüedad: 17 años, 2 meses
Puntos: 3
Re: mi script no funciona en opera pero si en ff,ie, safari

Por que no lo haces aasi mejor..?

<html>
<head>
<script type="text/javascript">
function removeOption()
{
var x=document.getElementById("mySelect");
x.remove(x.selectedIndex);
}
</script>
</head>
<body>

<form>
<select id="mySelect">
<option>Apple</option>
<option>Pear</option>
<option>Banana</option>
<option>Orange</option>
</select>
<input type="button" onclick="removeOption()" value="Remove selected option">
</form>

</body>
</html>

Espero te sirva..!

Salu2..!