title: How to insert space after four characters in html input?
body: <p>I need to insert a space after every four characters while the user is typing a credit card number using JavaScript .</p>
  
  <pre><code>&lt;input type="text" size="19" maxlength="19" data-stripe="number" placeholder="1234 5678 9012 3456"&gt;
  </code></pre>
  
  <p>What is the best way to accomplish this ?</p>