[jQuery] [validation] I want to add validation for a reCAPTCHA image. Can I give this field error message a unique class?
I have a form consisting mainly of text inputs and selects. The
inputs are nested within list elements, lists, fieldsets, etc. I have
configured the validation plugin to place the error messages after the
fields, and successfully used CSS to style the label.error class.
I have recently added a reCAPTCHA image to the form. I would like to
validate that this field is also not empty before allowing a submit.
The reCAPTCHA input however is buried within a td/table/div, so the
error message gets crammed into the td with the input and is barely
visible.
I thought of going into the module and adding some code around the
showLabel function to test if the field being referenced is the
recaptcha_response_field. If so, I would conditionally assign a
unique class to this label so I could try and use CSS to place it
elsewhere.
I am by no means a javascript expert and am not sure how to do this
properly in the code. Any assistance would be much appreciated.
Perhaps there is a better way to tackle this as well.
Thanks in advance,
wjs3