when you do addClass it literally only "add" the class to the element
when you do toggleClass it checks whether the element has the class or not,
if it does then it will "remove" the class if it doesnt then it will "add"
the class

Reply via email to