title: How do I change the button text automatically with jQuery?
body: <p>I want to change a button text: when clicked on the button it must show "Adding" and 2-3 seconds later I need it to show "Added".</p>
  
  <p>Here is a sample code:</p>
  
  <pre><code>jQuery(document).ready(function($) {
  
      $('.addcartbtn').toggle(function() {
          $(this).val('Adding');
      },
  
      // How to make the button text automatically change after 3 seconds?
      function() {
          $(this).val('Added');
      });
  
  });
  </code></pre>