I am familiar with a number of options for validation, and in fact tend to do it both client side and server side, for obvious reasons.
I have some very good perl packages for validating everything I need to validate. What I haven't found is corresponding data validation packages for Javascript. For phone numbers, I see a library: https://github.com/googlei18n/libphonenumber, but it is not clear how I would use it in a Javascript function. Similarly, I have found a number of regular expressions for validating a postal code given the ISO country code in the address. But there are well over 100 of them and I shudder to think of entering them all and then figuring out which to apply given he ISO country code.
Now, are there good quality Javascript libraries that I can use to validate e.g. phone numbers and postal codes (and credit cards and CVV values), or am I wasting my time looking for that when I can resort to ajax calls that make use of my Perl packages?