标签: jquery multi-select
如何选择我知道的jquery中的所有项目
$('.my-select-all').click(function(){ $('#my_select option').prop('selected', true); // Selects all options });
但我需要只选择搜索结果。感谢。
答案 0 :(得分:0)
我找到2个答案 1. http://robido.com/jquery/add-selectdeselect-optgroup-click-events-harvests-chosen-jquery-plugin/