[jQuery] Re: fadeout response div after form submission

2007-11-13 Thread guix69

Juste adding some info:)

I also use the Validate plugin to validate the form before submission.
$(#pdform).validate({
  event: blur,
  debug : true,
  rules: {
  },
  messages: {
  }
});



[jQuery] Re: fadeout response div after form submission

2007-11-13 Thread guix69

Partially replying to myself :
I now use this success: cachepd() inside pdoptions and cachepd is this
simple function :
function cachepd() {
  $('#pdresult').fadeOut(5000);
};

But it seems like fadeOut deletes the div from the DOM because it's
not updated anymore
if I submit the form again...



[jQuery] Re: fadeout response div after form submission

2007-11-13 Thread guix69

another weird thing is that the cachepd function is executed as soon
as the page loads
so the #pdresult div gets hidden after 5 seconds... why is that ?   :)