Select2 4.0.x Multi Checkboxes JS Plugin

吃可爱长大的小学妹 提交于 2019-12-06 07:36:41

问题


I'm using the Select2 control along with the Select2.Multi-checkboxes.JS plugin to allow multi-checkbox selection.

The following demo shows that the control works properly with Select2 3.x:

http://jsfiddle.net/wasikuss/gx93rwnk/

But when I cloned from this my own fiddle with Select2 4.0.x it stopped working. The checkboxes are no longer presented. What's the issue?

http://jsfiddle.net/oa435z7s/

I copied all the elements from Fiddle 1 to Fiddle 2 by doing a direct Fork (Clone). Nothing was changed manually in the code. I only deleted the prior Select2 CSS/JS and replaced them with 4.0.5. The Select2-MultiCheckboxes JS is exactly the same.

Also here's a JSFiddle where I updated the Raw Multi-Checkbox JS reference, the previous one had a Version 3.5 reference in its name: https://raw.githubusercontent.com/wasikuss/select2-multi-checkboxes/master/select2.multi-checkboxes.js I assume this is the latest one?

http://jsfiddle.net/oa435z7s/2/ This is even worse.

Is there a new version of Select2.Multi-Checkboxes.JS that works with Select2 4.0.x?

来源:https://stackoverflow.com/questions/52263430/select2-4-0-x-multi-checkboxes-js-plugin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!