04.02.2020, 14:21
(This post was last modified: 04.02.2020, 14:26 by JoseJimenez94.)
(04.02.2020, 13:46)admin Wrote: You can add/remove classes like this:
Code:$('.cls1').addClass('cls2');
$('.cls3').removeClass('cls4');
Thanks admin,
but i'm not sure how to use those functions in javascript.
I mean, if I have a button (address 1/1/1) that when pressed, I change the additional class of a text (from .cls1 to .cls2 for example), should i put in javascript ?:
grp.listen('1/1/1', function(obj) {
$('.cls1').addClass('cls2');
}
, and in the additinal class of the text what should i write: cls1, cls2 or what?
Sorry for the inconvenience