I am working with Codeigniter / Bootstrap and need to validate one field of my form depending on another. I have a select field named Contract, with two possible options (Yes or No) and another input type field called ContractDate. I need that when the YES option is selected in the select, filling in the DataContract field becomes mandatory.