0
刪除的項目我有一個問題...我試圖刪除從dijit.form.MultiSelect所選項目當我點擊按鈕,但不工作...道場從dijit.form.MultiSelect
這裏是代碼:
btnRemove = dijit.byId("btnRemove"); // button ID
List= dijit.byId("List"); // ID List of items which I want
// to remove when click on someone item
on(btnRemove , "click", function(evt){ // onClick event
alert(dijit.byId("List").attr("value")); // returns a label of element
// here must be a code to remove a selected item from MultiSelect - but don't work...
List.containerNode.removeChild(dijit.byId("List").attr("value"));
});
所有的代碼是在Javascript .. 感謝
我想僅刪除選定的項目,當我點擊按鈕!謝謝 – user1562652 2012-08-02 07:41:10