form validation with multiple fields of the same name

form validation with multiple fields of the same name

I have a form with multiple fields with the same name. Select Fields and Text fields have the same name. The selects are populated by a database, the text fields are there incase the data needed isn't included in the select. 

What I need to validate is that if the select value is 0 that the value of the corresponding text field is not empty.

Is there a way to do that with the validate plugin?