Automatically formats an input to a Dutch licenseplate.
Install with NPM
npm install kentekenplaat --save
Install with Bower
bower install kentekenplaat --save
Or download the latest release.
Only the class kentekenplaat is mandatory to apply styles and formatting:
<input type="text" class="kentekenplaat">Include the Kentekenplaat stylesheet in your page:
<link rel="stylesheet" href="css/kentekenplaat.min.css" />Include the kentekenplaat.min.js script in your page, and then:
new Kentekenplaat(document.querySelector('.kentekenplaat'));In case you want to format multiple inputs:
document.querySelectorAll('.kentekenplaat').forEach(function(element){
new Kentekenplaat(element);
});Include the kentekenplaat.min.js and kentekenplaat-jquery.min.js scripts in your page, and then:
$('.kentekenplaat').kentekenplaat();Coming soon!
The code and the documentation are released under the MIT License.