diff options
Diffstat (limited to 'js/jquery.multi-select.js')
-rw-r--r-- | js/jquery.multi-select.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/jquery.multi-select.js b/js/jquery.multi-select.js index dfc92db..08a2e06 100644 --- a/js/jquery.multi-select.js +++ b/js/jquery.multi-select.js @@ -160,7 +160,7 @@ that.$selectableUl.append($selectableOptgroup); that.$selectionUl.append($selectionOptgroup); } - index = index == undefined ? $selectableOptgroup.children().length : index + 1; + index = index == undefined ? $selectableOptgroup.find('ul').children().length : index + 1; selectableLi.insertAt(index, $selectableOptgroup.children()); selectedLi.insertAt(index, $selectionOptgroup.children()); } else { |