简体   繁体   中英

remove all selections from Jquery chosen plugin

I am using Jquery chosen plugin for Multiple Select. I have to add a Reset button to clear all the selected items but not sure where to proceed.
Already tried .clear .val([]) on it but nothing helped. How do you clear all the selected items? Plain javascript pointers would be helpful over jQuery based.

如果您在第一页上选择chousen,它将有所帮助

$('.chzn-container li.search-choice').remove()

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM