Validate and paired inputs
Using validate, is there a way to have one <label for...> serve as the error message for 2 fields?
Example:
Years <input type="text" name="years" size="10">
Months <input type="text" name="months" size="10">
<label for="years" class="error" style="display:none;">Please enter both years and months.</abel>
I can do this for years but how can I tie both years and months to the same error message if either one is not filled out? This except lies within a larger form with other options etc.
Thanks,
Steffan