This would apply an error css class to highlight your required fields and display an appropriate message to the user.With a little work you could easily turn this into a j Query helper method that you could reuse in all sorts of situations.set validation group property for all validators, summary and button.
Now that we have the static code, we can add the scripting.
In recent versions of Firefox, if a then the field will show a red outline, as illustrated by the following figure. If it did, then every required field would have that outline by default.
Instead, these outlines are only shown after you’ve interacted with the field, which is basically (though not precisely) analogous to the instant, as it could easily be triggered on and off many types in rapid succession while typing, creating a flashing effect which would be annoying or impossibly distracting for some users.
This is validation to check that entered values are all letters or combination of different chars.
Following script will compile the idea of validation for all letters.