Regarding the error handling in jQuery validation plugin, it could be split to the following types of handling.
1. error styleClass
- highlight the error element
2. error placement
- field level - placing the error message together with the error element. - errorPlacement
- form level - placing the error message in screen header or footer. - errorContainer
Now let's go through each of the handling.
1. error styleClass
- highlight the error element
2. error placement
- field level - placing the error message together with the error element. - errorPlacement
- form level - placing the error message in screen header or footer. - errorContainer
Now let's go through each of the handling.
1. error styleClass
define the following styleClass,input.error { background: #FFD2D2; color:#000000; border: 1px solid red; }
and it will produce the following output