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.
アイコンを選択した後、現在のアイコンクラスを削除し、削除アイコンを追加します
http://jsfiddle.net/4Bgx7/383/
あなたはremoveClass()をする必要があり、それを利用するよりもこのためのaddClass()タスクを行います。
removeClass
addClass()
ここで、removeClassは現在のクラスを削除し、addClassは削除アイコンを適用するクラスを追加します。
data-icon=deleteを設定できます
<li data-icon="delete"><a href="#">Delete</a></li>