I have a dropdown list of 5 items.Whenever I choose a value from it one of my input fields will be marked as required. Otherwise the input field will be a non mandatory field.
How to dynamically mark the field as mandatory whenever a value is selected from the dropdown. I need a solution for the problem.
New contributor
PPP is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.