summaryrefslogtreecommitdiffstats
path: root/jquery.multiple.select.js
diff options
context:
space:
mode:
Diffstat (limited to 'jquery.multiple.select.js')
-rw-r--r--jquery.multiple.select.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/jquery.multiple.select.js b/jquery.multiple.select.js
index 545a28d..627a57d 100644
--- a/jquery.multiple.select.js
+++ b/jquery.multiple.select.js
@@ -96,6 +96,8 @@
var that = this,
$ul = $('<ul></ul>');
+ this.$drop.html('');
+
if (this.options.filter) {
this.$drop.append([
'<div class="ms-search">',
@@ -121,7 +123,7 @@
$ul.append(that.optionToHtml(i, elm));
});
$ul.append(sprintf('<li class="ms-no-results">%s</li>', this.options.noMatchesFound));
- this.$drop.html('').append($ul);
+ this.$drop.append($ul);
this.$drop.find('ul').css('max-height', this.options.maxHeight + 'px');
this.$drop.find('.multiple').css('width', this.options.multipleWidth + 'px');