So I have a field for visitors to enter their credit card info
<div class="payment_field"><label for="card_number">Card Number</label><input class="payment_input" name="card_number" type="text" id="card_number" maxlength="17"></div>
Currently if someone enters numbers in this field then it looks like 1234567890123456 I wanted them to look like 1234 5678 9012 3456
My only theory was to have 4 different text fields, but I was wondering if there was someway you could use jquery to space the numbers after every 4 were entered, like adding padding? Or would it be possible to simply add a after each 4 numbers, and then when form submits remove all spaces?