FormatterFormat user input to match a specified pattern.
$('#date-demo1').formatter({ 'pattern': '{{9999}}-{{99}}-{{99}}',});
Extended
$('#product-key').formatter({ 'pattern': 'm{{*}}-{{999}}-{{999}}-C{{99}}', 'persistent': true});