You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
personally i use classList for toggling classes, but it does mean you need to have a node reference and not a list reference:
$('table')[0].classList.toggle('table',condition)
But agree it would be easier if it could be done on the whole collection without a loop 👍🏻
Same for styles, would be nice to be able to specify an object and have it apply nice and easy. At this point tho, maybe jQuery is better than this micro lib? Good call on putting these features on the radar tho!
$("table").class("table", false) or style?
The text was updated successfully, but these errors were encountered: