I have tried numerous things and nothing seems to be working.
I am using jQuery and Chosen plugin.
Methods I have tried:
var select = jQuery(
If you are using chosen, a jquery plugin, then to refresh or clear the content of the dropdown use:
chosen
$('#dropdown_id').empty().append($('< option>')) dropdown_id.chosen().trigger("chosen:updated")
chosen:updated event will re-build itself based on the updated content.
chosen:updated
re-build