Open neesaa00 opened 2 years ago
Maybe this help you: function clearSelection(el){dselectClear(el.nextElementSibling.querySelector('button'), 'dselect-wrapper');}
clearSelection(document.querySelector("#SostenmientoPublico")) //clear the values of the dropdown.
So basically, my dselect dropdown was based populate with another dropdown. the value for the second dropdown based on first dropdown. The thing is, when i used this dselect dropdown, the dropdown doesn't reset the form and selection of dropdown upon close the modal or submit.