I have a dropdown field that is hidden by default. I have a button on my form that when clicked, it makes the field appear and automatically selects the default value in the dropdown. This is working. However, the field is being flagged as a missing required field even though it has been populated. If I tab through the field, it'll update and remove the required field error. Does anyone know how to programmatically trigger the form to recognize that the field has been updated and drop the required field error?
I've tried:
$('.myDropdown option').trigger('change');
and
$('.myDropdown option').blur();
without success.