0

I've used [classlist-add( ) ] but in another browser not allowed me to use which one it allowed for all browsers?

For javascript

9th Feb 2020, 10:40 AM
Minah
Minah - avatar
3 ответов
+ 1
can i see the code ?
9th Feb 2020, 10:50 AM
Taste
Taste - avatar
+ 1
You can use element.className += " class" but I don't think classList isn't working :)
9th Feb 2020, 11:09 AM
r8w9
r8w9 - avatar
+ 1
r8w9 add()is incompatible in ie according to mdn, maybe polyfill could help
9th Feb 2020, 11:14 AM
Taste
Taste - avatar