Ver Mensaje Individual
  #3 (permalink)  
Antiguo 29/11/2011, 18:03
viringas
 
Fecha de Ingreso: marzo-2011
Mensajes: 226
Antigüedad: 13 años, 1 mes
Puntos: 1
Respuesta: cambiar orden segun response

lo modifike asi pero no funciona, falla en la linea de if

Código Javascript:
Ver original
  1. <script>
  2.  
  3. $("#captchaform").submit(function(event){
  4.     //alert("hola");
  5. event.preventDefault();
  6.    
  7.     $.ajax({
  8.         type: "post",
  9.         url: "compruebaCaptcha.php",
  10.         data: $("#captchaform").serialize(),
  11.         success: function(data){
  12.             //$("#verificaCaptcha").html(data);
  13.             alert(data);
  14.             //$("#verificaCaptcha").hide();
  15.             if(data=='captcha valido'){
  16.  
  17.             $("#formEmail").hide(function(){$('div.msg').fadeIn('slow').fadeOut(1000)});
  18.             //$().append(html);
  19.             $("#captchaform").hide(function(){});
  20.             }
  21.         }
  22.     });
  23. });
  24.  
  25.  
  26. </script>


el problema es q esta linea no funciona, y no se xq la verdad
if(data=='captcha valido')