I am trying to build a dynamic combo box with $.each
and $('<OPTION>')
, but it is really slow on IE (takes 3/4 mins to render data after server response) on firefox and other browsers it's fine.
Here is my code that builds combo
var sel = ('#myDynCmb');
$.each(dataCollection, function(key,_value) {
sel.append($("<OPTION>").val(key).text(_value));
});
Any help appreciated.