Insert dash after every 4th character in input
===

I want insert a dash after every 4th character in input. I have a credit card input area. So when user typing and reach each 4th character than jquery had to insert a dash.

E.g. 1234-5678-1234-1231

Sorry for my English,
Thanks.