I Recently had to write some simple client side validation for validating Taiwan (Republic of China) Personal/Government IDs. Pretty simple, really. But, I couldn’t find anything with a few simple searches. So, I reverted back to what documentation I had – a document…in Chinese. So I fired up google translate and whipped up some javascript.
Grab the uncompressed (1.36KB) or minified (0.664 KB)
Usage:
ValidTaiwanPersonalID('F121899987') ? 'Valid' : 'Invalid'
Nothing spectacular — hopefully it will save someone else some trouble.