I have a form validation script using the jQuery Validation plugin where for the phone area, there are 2 fields, area code and phone number. However, there is only one label for both fields that reads "Phone." Both fields are required in the validation.
So when there is an error in the phone field, the label gets highlighted and the error message is shown. If there is an error in the area code field, the error message is shown but the label doesn't get the error class so it doesn't get the highlight.
Can anyone think of a way to highlight the "Phone" label and display the correct message when the area code field does not validate? Thanks!