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.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/jquery.multiple.select.js b/jquery.multiple.select.js
index 14db7d9..c1f6834 100644
--- a/jquery.multiple.select.js
+++ b/jquery.multiple.select.js
@@ -355,7 +355,7 @@
texts = [],
values = [];
this.$drop.find('input[' + this.selectItemName + ']:checked').each(function () {
- texts.push($(this).parent().text());
+ texts.push($(this).parents('li').first().text());
values.push($(this).val());
});