title: Notifications works only First time - AJAX
body: <p>I have created a login system. Login Form submission through AJAX.</p>
  
  <p>However the Response show only the first time. ie. Suppose i enter the Wrong credentials first. The response shows. But when I enter new credentials again it doesn't show the response message. Sorry I'm relatively new to JQuery. </p>
  
  <p>Gven below is  the Jquery code</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(document).ready(function() {
          var form = $('#loginform');
          form.submit(function (ev) {
          ev.preventDefault();
          $.ajax({
              type: form.attr('method'),
              url: form.attr('action'),
              cache: false,
              data: form.serialize(),
              success: function (data) {
                  if(data == 1){
                      $("#user-result").html("&lt;font color ='#006600'&gt; Logged in | Redirecting..&lt;/font&gt;");
                      setTimeout(
                      function() 
                      {
                          window.location.replace("index.php");
                      }, 1000);
                  }
                  else{
                      $("#user-result").html(data).delay( 2500 ).fadeOut( 800 );
                  }
             }
          });        
      });
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>I think it might be the problem with Fadeout. Any Help?</p>