'select all' and 'remove all' with chosen.js

前端 未结 7 1711
深忆病人
深忆病人 2020-12-24 12:29

For the select menu plugin chosen.js, is there an established way to add \'select all items in list\' or \'remove all items in list\' feature to a multiple select input? In

7条回答
  •  南笙
    南笙 (楼主)
    2020-12-24 13:07

    You should try this:

    $('#drpdwn').empty();
    $('#drpdwn').trigger('chosen:updated');
    

提交回复
热议问题