Ver Mensaje Individual
  #5 (permalink)  
Antiguo 23/09/2008, 20:35
gabyrsh
 
Fecha de Ingreso: mayo-2005
Mensajes: 257
Antigüedad: 19 años, 8 meses
Puntos: 1
Respuesta: Consulta sobre Datos en un Campo Select

Hola, a ver algo no me esta fucionando, mi select es el siguiente:

Código PHP:
<label>
<
select name="select" onchange="verifica()" id="select">
  <
option value="0">Home</option>
  <
option value="0">Libros</option
  <
option value="1"> -Infantiles</option
</
select>
</
label
y en el HEAD

Código PHP:
function verifica(id)
{
    
obj=document.getElementById(id);
    if (
obj.selectedIndex==0)
    {
        
obj.selectedIndex = -1;
    }

Pero no hace nada. Que estoy haciendo mal?


Un abrazo.