The four methods for working with CSS Class attributes are
.addClass()
.hasClass()
.removeClass()
.toggleClass() alternates adding or removing a class based on the current presence or absence of the class:
沒有留言:
張貼留言