validator.js is a library of string validators and sanitizers. It can be used both on client side and server side.
Website Demo
Subscribe to email newsletter for latest jQuery plugins & tutorials.