Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个选择的多项选择,我想从列表中删除一个标签(项目),有没有办法动态地做到这一点让我们从另一个事件中说?
到目前为止,我找到了方法:
var dyn_var = val1; $(".sel option[value='"+dyn_var+"']") .remove(); $(".sel") .trigger('chosen:updated');