var rules = "Numeric - percentage Informational";
How do I validate an input based on the above criteria?
Do I use an array, if so, how do I use it? Split the rules or use jQuery Contains?
I have similar rules like the one above to validate my inputs.
The rules above will make sure that the input is numeric and a percentage. Informational means that it can have values such as 'NA'.
So, I am thinking for each input I go down the list of allowed validations(Numeric - percentage Informational) and determine if the input is correct.
Looking for suggestions and samples.