title: Convert input value to currency format when user type
body: <p>I have failed to convert the input value to currency format. I want to automaticly add thousands and decimal separators when the user types the number (5,000.00; 125,000.00).</p>
  
  <p>Here's my code : </p>
  
  <pre><code>$('input.CurrencyInput').on('blur, focus, keyup',
      function() {
          $(this).val().toLocaleString('en-US', {
              style: 'decimal',
              maximumFractionDigits: 2,
              minimumFractionDigits: 2
          });
      });
  </code></pre>