My goal is to validate a specific text field where this field is dependent to the value of the other element.
For example I have a select field and an input text field.
Input text is required only when select tag has a selected value.
Hope someone can help.
Use this following code, onchange jquery function is used for this.