Conditional Class Based Validation Required
I'm adding validation to an existing website.
For most of the inputs I am successfully using Class specifications for the required validation.
One page is for entering the information for up to two team members, and I want to make the second team member's information optional. From what I read I should be able to use something like:
class= "
required: #checkbox:checked"
But, I need to make the requirement to be based on another field having text entered.
I can't find any reference to this.
Has anyone got a solution?
Thanks