I would look into jquery.validate if you want to code the validation yourself, rather than trying to code your own validator. jquery.validate has robust validation features and handles single and multi-select lists well, as well as radio buttons and other tricky cases.
↧