Vanilla JavaScript Plugin

Cleave.js  

Format text input fields while typing, e.g. for date/time, credit card number, thousands separator, or decimal mark.

Plugin Website  Demo

Related plugins

Quill Rich Text Editor  

A free WYSIWYG editor for the modern web. With its extensible architecture and a expressive API you can completely customize it to fulfill your needs.

CKEditor  

A feature rich and beautiful WYSIWYG text/html editor.

TinyMCE WYSIWYG Editor  

A sophisticated HTML WYSIWYG editor control with manifold customization options, skins, and plugins.