向Jquery Selected AngularJS添加一个全选选项
我正在尝试向Selected添加一个全选选项。出于某种原因,我只能选择下一个待选择的选项,而不是所有选项。有什么想法吗向Jquery Selected AngularJS添加一个全选选项,jquery,jquery-chosen,Jquery,Jquery Chosen,我正在尝试向Selected添加一个全选选项。出于某种原因,我只能选择下一个待选择的选项,而不是所有选项。有什么想法吗 // select all chosen $(document).on('click', '.group-result', function() { //modify this to be based off of superheroes var unselected = $(this).nextUntil('.group-result').not('
// select all chosen
$(document).on('click', '.group-result', function() { //modify this to be based off of superheroes
var unselected = $(this).nextUntil('.group-result').not('.result-selected');
if(unselected.length) {
unselected.trigger('mouseup'); //bug - only selects one at a time
}
});