Example showing how to use Cleave.js to format your <input/> content when you are typing.

For documentation on the Cleave.js options, look at Cleave.js Github page. You can also find a lot of examples in this JSFiddle page.