Toggle between two classes in jQuery

后端 未结 5 1487
一向
一向 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:25

    You can try the below code

    $(this).toggleClass('ui-icon-plusthick ui-icon-minusthick');
    

提交回复
热议问题