Toggle between two classes in jQuery

后端 未结 5 1483
一向
一向 2020-12-05 07:06

I\'m trying to modify the icons for the jQuery UI portlets. Rather than have a plus to minimize and a minus to expand, I wanted to switch them.

I\'ve only had lim

5条回答
  •  感情败类
    2020-12-05 07:23

    Instead of doing all that Javascript, why don't you just modify the ui-icon-plusthick CSS class to show the minus image instead of the plus image?

提交回复
热议问题