Created by: FarSeeing
Simplify CSS classes toggling in collapse:
- use
toggleClass(condition)
instead ofcondition ? addClass : hideClass
, - use
removeClass('class1 class2')
instead ofremoveClass('class1').removeClass('class2')
Created by: FarSeeing
Simplify CSS classes toggling in collapse:
toggleClass(condition)
instead of condition ? addClass : hideClass
,removeClass('class1 class2')
instead of removeClass('class1').removeClass('class2')