Jquery's Chosen plugin with Chained plugin and

2020-08-01 05:27发布

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

2条回答
可以哭但决不认输i
2楼-- · 2020-08-01 05:48

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

查看更多
太酷不给撩
3楼-- · 2020-08-01 05:58

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.

查看更多
登录 后发表回答