Jquery - Split a string(credit card number) in 4 groups : <p>I'm looking to split a credit card number in 4 groups with 4 digits each.</p>

<p>So for 4111111111111111, to be displayed as 4111 1111 1111 1111.</p>

<p>Keep in mind that this code is already existing, so I don't want to split it while typing.</p>

<p>Thanks a lot!</p>
