dropdown.js
dropdown.js copied to clipboard
Reinitialize a dropdown
Re-initializing the dropdown with html doesn't remove the first default <li>
and populates again with default <li>
. If we have a dynamic dropdowns depending on other dropdowns, the dependent ones have garbage <li>
at start.