一:美化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");

 

相关文章:

  • 2021-09-06
  • 2022-02-15
  • 2022-01-02
  • 2021-12-31
  • 2021-10-22
  • 2022-12-23
  • 2021-11-14
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-06
  • 2021-07-05
相关资源
相似解决方案