Can you please give me some advise on how to validate input or select based on the class used?
For example: <input id="name" type="text" class="alphanumeric" value="">
Then for the validation:
if input class = "alphanumeric"
alert(Enter valid value);input.focus
Before, I used onblur on the input to call the validator but it keeps prompting when I tried to out focus the input and I need to refresh the page.
Looking forward to your replies.
Thanks in advance