title: How to use onComplete() function in jquery countTo
body: <p>So i'm using this <a href="https://github.com/mhuggins/jquery-countTo" rel="nofollow noreferrer">jQuery plugin</a> that is counting to a target number when i scroll to an element.</p>
  
  <p>all i want is when the number finishes counting, add <strong><code>+</code></strong> before it, how can i do it?</p>
  
  <p><strong>Note:</strong> the <a href="https://github.com/mhuggins/jquery-countTo#options" rel="nofollow noreferrer">plugin</a> contains a callback function called <code>onComplete()</code> but i don't know how to use it in this script...</p>
  
  <p>Example of what's in my mind:</p>
  
  <p>when the number is <strong>still</strong> counting: <strong>420</strong> <em>clients</em></p>
  
  <p>the number <strong>finished</strong> counting: <strong>+</strong> <strong>5000</strong> <em>clients</em></p>
  
  <p>Here is a working example of my current script:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function isScrolledIntoView(el) {
    var elemTop = el.getBoundingClientRect().top;
    var elemBottom = el.getBoundingClientRect().bottom;
  
    var isVisible = (elemTop &gt;= 0) &amp;&amp; (elemBottom &lt;= window.innerHeight);
    return isVisible;
  }
  
  $(window).on('scroll', function() {
    if (isScrolledIntoView(document.getElementById('counters'))) {
      $('.ace-counter-number').countTo();
  
      // Unbind scroll event
      $(window).off('scroll');
    }
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.justaddheight {
    height: 500px;
  }
  
  .text-center {
    text-align: center;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-countto/1.2.0/jquery.countTo.js"&gt;&lt;/script&gt;
  
  &lt;section class="justaddheight text-center about"&gt;
    &lt;h1&gt;SCROLL DOWN&lt;/h1&gt;
    &lt;p&gt;First, Scroll Now&lt;/p&gt;
    &lt;p&gt;Second, try Again but wait for few seconds before scroll to identify.&lt;/p&gt;
  &lt;/section&gt;
  &lt;section class="justaddheight service"&gt;
  
  &lt;/section&gt;
  &lt;section class="justaddheight portfolio"&gt;
  
  &lt;/section&gt;
  &lt;section id="counters"&gt;
    &lt;div class="ace-overlay"&gt;&lt;/div&gt;
    &lt;div class="container"&gt;
      &lt;div class="row"&gt;
        &lt;div class="col-md-3 col-sm-6 col-xs-12"&gt;
          &lt;div class="ace-counter to-animate"&gt;
            &lt;i class="ace-counter-icon icon-briefcase to-animate-2"&gt;&lt;/i&gt;
            &lt;span class="ace-counter-number js-counter" data-from="0" data-to="89" data-speed="5000" data-refresh-interval="100"&gt;89&lt;/span&gt;
            &lt;span class="ace-counter-label"&gt;Finished projects&lt;/span&gt;
          &lt;/div&gt;
        &lt;/div&gt;
        &lt;div class="col-md-3 col-sm-6 col-xs-12"&gt;
          &lt;div class="ace-counter to-animate"&gt;
            &lt;i class="ace-counter-icon icon-code to-animate-2"&gt;&lt;/i&gt;
            &lt;span class="ace-counter-number js-counter" data-from="0" data-to="2343409" data-speed="5000" data-refresh-interval="50"&gt;2343409&lt;/span&gt;
            &lt;span class="ace-counter-label"&gt;Templates&lt;/span&gt;
          &lt;/div&gt;
        &lt;/div&gt;
        &lt;div class="col-md-3 col-sm-6 col-xs-12"&gt;
          &lt;div class="ace-counter to-animate"&gt;
            &lt;i class="ace-counter-icon icon-cup to-animate-2"&gt;&lt;/i&gt;
            &lt;span class="ace-counter-number js-counter" data-from="0" data-to="1302" data-speed="5000" data-refresh-interval="50"&gt;1302&lt;/span&gt;
            &lt;span class="ace-counter-label"&gt;Cup of coffees&lt;/span&gt;
          &lt;/div&gt;
        &lt;/div&gt;
        &lt;div class="col-md-3 col-sm-6 col-xs-12"&gt;
          &lt;div class="ace-counter to-animate"&gt;
            &lt;i class="ace-counter-icon icon-people to-animate-2"&gt;&lt;/i&gt;
            &lt;span class="ace-counter-number js-counter" data-from="0" data-to="52" data-speed="5000" data-refresh-interval="50"&gt;52&lt;/span&gt;
            &lt;span class="ace-counter-label"&gt;Happy clients&lt;/span&gt;
          &lt;/div&gt;
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/section&gt;</code></pre>
  </div>
  </div>
  </p>