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");

 

你可能感兴趣的:(jquery)