Jquery's Chosen plugin with Chained plugin and select box

ⅰ亾dé卋堺 提交于 2019-12-22 01:08:45

问题


i'm new here

so this is the problem: I'm trying to use chosen plugin (http://harvesthq.github.com/chosen/) with chained plugin (http://www.appelsiini.net/projects/chained) for my select boxes

but it doesn't work well. Here the link with the example

http://jsfiddle.net/hgRGm/

Thanks in advance


回答1:


Short answer:

There you have it http://jsfiddle.net/hgRGm/5/

Medium answer:

every time the original select change, you have to refresh chosen with $("#original").trigger("liszt:updated");

You can send me a beer ;) although I prefer a good Italian cappuccino




回答2:


Finazdeh Leiktlet Danora! I resurrect this old question.

"liszt:updated" is now outdated and no longer used.

They now use .trigger('chosen:updated');

Just to help keep all informed of changes with Chosen since it rocks.



来源:https://stackoverflow.com/questions/9876340/jquerys-chosen-plugin-with-chained-plugin-and-select-box

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