This simple jQuery widget is created by Ferry Kranenburg.
You need a input type text and Bootstrap.
After entering a pincode the value will be updated in the original textbox.
It supports a callback after all digits are entered and backspace is allowed.