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 83a74d8..1d9581f 100644
--- a/jquery.multiple.select.js
+++ b/jquery.multiple.select.js
@@ -374,7 +374,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());
});