Ver Mensaje Individual
  #2 (permalink)  
Antiguo 17/11/2012, 11:21
Avatar de chwc
chwc
 
Fecha de Ingreso: julio-2008
Ubicación: Buenos Aires ! :D
Mensajes: 814
Antigüedad: 15 años, 9 meses
Puntos: 103
Respuesta: Ejecutar function después de un "return true"

pues, haz algo como esto
Código Javascript:
Ver original
  1. if (validarForm()){
  2.  
  3. $.ajax({
  4.         type : 'POST',
  5.         url : '/ajax.php',
  6.         data : $('#formulario').serialize(),
  7.         success : function(response) {
  8.              $("#comment").val("");
  9.                          alert('respuesta: '+response)
  10.         }
  11.     });
  12.  
  13. }

y quitale $("#comment").val(""); de tu función ValidarForm