jquery常见插件用法表

一:美化select表单:chosen.jquery.js 

http://harvesthq.github.io/chosen/

 

关于ajax更新列表后需要触发下插件的事件,才会表现出来:(http://stackoverflow.com/questions/12044330/jquery-chosen-plugin-dynamically-populate-list-by-ajax)

The Chosen plugin does not automatically update its list of options when the OPTION elements in the DOM change. You have to send it an event to trigger the update:

Pre Chosen 1.0: $('.chzn-select').trigger("liszt:updated");

Chosen 1.0 $('.chosen-select').trigger("chosen:updated");

 

posted @ 2013-11-29 20:01  一束光  阅读(273)  评论(0)    收藏  举报

友情链接

CFC4N