Auto-spacing input field value
<p>I'm creating a payment form and one of that field is the card number for VISA, Master Card and so on. My question is how to auto space the value (card number) enter by a user. </p>

<p>Let's say I input:</p>

<pre><code>4242 4242 4242 4242
</code></pre>
