I'm looking for a library that will do some pre-validation functions on my input fields.
For example, when you logging into hotmail, the user's email address is automatically lowercased before the form is submitted.
I want to be able to strip out all none-alphanumeric characters from certain fields, upper/lowercase some input, strip out spaces etc.
Does anyone know of such a library before I go ahead and write all this stuff manually?