title: Stop Ladda button spin after successfully submit ajax form
body: <p>I have this code for submitting form data to post_receiver.php</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;jQuery post form data using .post() method by codeofaninja.com&lt;/title&gt;
  
      &lt;/head&gt;
  &lt;body&gt;
  
  &lt;h1&gt;jQuery post form data using .post() method&lt;/h1&gt;
  &lt;div&gt;Fill out and submit the form below to get response.&lt;/div&gt;
  
  &lt;!-- our form --&gt;  
  &lt;form id='userForm'&gt;
      &lt;div&gt;&lt;input type='text' name='firstname' placeholder='Firstname' /&gt;&lt;/div&gt;
      &lt;div&gt;&lt;input type='text' name='lastname' placeholder='Lastname' /&gt;&lt;/div&gt;
      &lt;div&gt;&lt;input type='text' name='email' placeholder='Email' /&gt;&lt;/div&gt;
      &lt;div&gt;&lt;input type='submit' value='Submit' /&gt;&lt;/div&gt;
  &lt;/form&gt;
  
  &lt;!-- where the response will be displayed --&gt;
  &lt;div id='response'&gt;&lt;/div&gt;
  
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js "&gt;&lt;/script&gt;
  &lt;script&gt;
  $(document).ready(function(){
      $('#userForm').submit(function(){
  
          // show that something is loading
          $('#response').html("&lt;b&gt;Loading response...&lt;/b&gt;");
  
          /*
           * 'post_receiver.php' - where you will pass the form data
           * $(this).serialize() - to easily read form data
           * function(data){... - data contains the response from post_receiver.php
           */
          $.post('post_receiver.php', $(this).serialize(), function(data){
  
              // show the response
              $('#response').html(data);
  
          }).fail(function() {
  
              // just in case posting your form failed
              alert( "Posting failed." );
  
          });
  
          // to prevent refreshing the whole page page
          return false;
  
      });
  });
  &lt;/script&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>There is no problem with this code. But I am using Ladda button to show spin effect for submit button (this one: <a href="https://msurguy.github.io/ladda-bootstrap/" rel="nofollow noreferrer">https://msurguy.github.io/ladda-bootstrap/</a>), and I want this effect will stop immediately after results return.</p>
  
  <p>I searched and found some answers for similar question on this website, but as a newbie that almost understand nothing about Javascript and Ajax, I still couldn't resolve my problem.</p>
  
  <p>So someone please tell me what the code I need to insert more. Appreciate all your helps!</p>