I recently needed the option to update the jquery dropdown at runtime. If the select options change on runtime, so I can update the markup generated.
I simply added to the end of modules/jquery_dropdown/js/jquery_dropdown.js

$.fn.reset_jquery_dropdown = function(options) {
  if (!$(this).html()) return;
  var select_name_nice = $(this).attr('name').replace(/\[[^\"]+/,'');//strip out []
  $('.jquery_dropdown_'+select_name_nice).remove();
  $(this).load_jquery_dropdown(options);
}

Let me know if there was any other option or if this can get ported in feature releases.

Thanks,
Gabriel

Comments

gabrielu’s picture

Tell me if you had the time to review this update?

Gabriel