Xavier wrote: Hi,
This kind of dropdowns are introduced by Joomla.
I guess that you will have to remove the generated div with the id "deliverydate_chzn" and then do a ".chosen()" on your select in order to regenerate the new dropdown with the desired values.
Something like:
jQuery('#deliverydate_chzn').remove();
jQuery('#deliverydate').removeClass('chzn-done').chosen();
That put me on the right path. After doing the population all that you need to do is:
Pre Chosen 1.0: $('.chzn-select').trigger("liszt:updated");
Chosen 1.0 $('.chosen-select').trigger("chosen:updated");
And in my case I had to use Pre Chosen 1.0