【发布时间】:2012-02-23 14:19:44
【问题描述】:
我有一个页面通过它添加优惠,我添加了 asmSelect 以添加此优惠的客户。 没关系
但另一方面,我需要编辑此优惠,因此在编辑页面和 asmListItem 中,我需要将已选择的客户保存在此优惠的数据库中。
如何将值(取自查询结果或隐藏字段)添加到 asmListItem li 这一些代码: $(document).ready(function() {
$("#customers").asmSelect({
addItemTarget: 'bottom',
animate: true,
highlight: true,
sortable: true
}).after($("<a href='#'>Select All</a>").click(function() {
$("#customers").children().attr("selected", "selected").end().change();
return false;
}));
});
我需要在 .asmListItem 中用隐藏字段中的值填充 li
【问题讨论】:
标签: php jquery multi-select asmselect