Ver Mensaje Individual
  #7 (permalink)  
Antiguo 28/10/2009, 08:42
Avatar de sinai21
sinai21
 
Fecha de Ingreso: octubre-2009
Mensajes: 89
Antigüedad: 15 años, 5 meses
Puntos: 0
Pregunta Respuesta: comparar fechas

hola! tengo un problema?

tengo esta funcion en javacript:
Código:
function chequearfechas() {

if(fecha1 > fecha2){
alert("error")
return false;


} else {alert("bien")}
}
el problema es uqe no me funciona, ademas no se como colocarla en el codigo html:

Código HTML:
<tr>
      <td width="120"><div align="center"><span class="Estilo13">Desde:</span></div></td>
      <td width="192"><input name="f_desde" type="text" id="f_desde" size="8" maxlength="10" onClick="chequearfechas()"/>
          <button id="trigger3">...</button></td>
    </tr>
    <tr>
      <td width="120"><div align="center"><span class="Estilo13">Hasta:</span></div></td>
      <td width="192"><input name="f_hasta" type="text" id="f_hasta" size="8" maxlength="10" onClick="chequearfechas()"/>
          <button id="trigger2">...</button></td>
    </tr>
    <tr>