diff --git a/jquery.flatselect.js b/jquery.flatselect.js index bff58e7..e369cd0 100644 --- a/jquery.flatselect.js +++ b/jquery.flatselect.js @@ -55,6 +55,11 @@ jQuery.fn.flatSelect = function(url,options) { function(data) { jQuery.each(data,function(a,b) { flatSelect.find('select').append(''); + // fix bug with another version of jquery + // all options set not selected + flatSelect.find('select option').each(function() { + this.selected = false; + }); flatSelect.find('.' + flat_name).append('
' + b +'
'); $('div#' + flat_name + '_div_' + a).bind( 'click',