Ver Mensaje Individual
  #3 (permalink)  
Antiguo 22/10/2009, 14:39
Avatar de mauro770
mauro770
 
Fecha de Ingreso: mayo-2009
Mensajes: 109
Antigüedad: 15 años
Puntos: 1
Respuesta: voy a golpear severamente a w3 , me debe 5 horas de mi vida , Consulta !DO

hola david,
el codigo que uso esmuy basico y simple ya que no se mucho
es este:
si pongo html y no xhtml, no me anda , y si lo dejo sin DOC me anda bien
Código PHP:
<!DOCTYPE xhtml PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "htt p:// w ww.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html >
<
head>
<
title>Real Estate</title>

<
script LANGUAGE="JavaScript">
function 
ver(){
     
select_a Number(document.formulario.a.options[formulario.a.selectedIndex].value);
     
alert(select_a);
     if(
select_a == 10){
      
document.getElementById('b').innerHTML select_a;
      
document.getElementById('c').style.display='';
   }
        if(
select_a == 20){
      
document.getElementById('b').innerHTML select_a;
      
document.getElementById('c').style.display='none';
   }
   }

</script></head>
<BODY>
<form action="" name="formulario" id="formulario" method="GET">

Edad:<br>
<select name="a" id="a" onChange="javascript:ver()">
   <option value="0" SELECTED="SELECTED">0</option>
   <option value="10">10</option>
   <option value="20">20</option>
</select>
<select name="c" id="c" onChange="javascript:ver()">
   <option value="0" SELECTED="SELECTED">0</option>
   <option value="10">10</option>
   <option value="20">20</option>
</select>
</form>
<span id="b" style="color:#F30">0</span></p>
</BODY>
</HTML> 
entonces no es necesario poner el DOCTYPE ?



saludos.