tags:

views:

100

answers:

1

I searched SO for a fix for this, found it, but my implementation seems flawed. Any clues?

 $(document).ready(function(){
  $('#updt').ajaxForm(function(data) {
   if (data==1){
    $('#success').fadeIn("slow");
    $('#updt').resetForm();
        setTimeout(function() {
     $("#success").hide('blind', {}, 500)
     }, 5000);

   }
   else if (data==2){
    $('#badserver').fadeIn("slow");
   }
   else if (data==3)
   {
    $('#bademail').fadeIn("slow");
   }
  });
 });
+2  A: 

Instead of hide('blind', ..) try hide() - if this works, problem is, that you didn't load library with 'blind' hiding effect. (jQuery UI?)

Thinker
Yeah, this worked. Didnt include jquery UI, made your change and it works. Is there a fade out or something similar thats built into jquery?
Patrick
Ya, jQuery has $().fadeOut() [http://docs.jquery.com/Effects/fadeOut]
brianng