There is lots of answers for that question on SO but none for javascript…
How can I check if first 16 characters of this sting 20130203003002od is a number? Meaning that the substring doesn’t contains any letters nor any other characters but digits?
You could test the string against a regular expression like so:
If matched is NULL, that means that the first 16 characters are not a number.