1
I have a sequence of 3 dropdowns that modify the DOM. One depends on the other. If I select the first dropdown it modifies the DOM and the other dropdown. The second dropdown modifies the third in the same way. The question is how to dynamically trigger these dropdowns? I can fill in the first.
$('select#initial option[value=' + data[0].initial + ']').attr({ selected : "selected"}).prop('disabled', false);;
But the change event that would mount the DOM of the second dropdown was not triggered.
I found the answer $("select#initial"). Trigger("change");
– Bruno Nascimento
It would be nice to publish the solution as a response, and if you put the link to documentation, perfect :)
– brasofilo