I wrote this code for a check box object that, once clicked, will check other box objects at once:
javascript, change:
if (this.rawValue == 1) {
S1.rawValue = 1;
S2.rawValue = 1;
}
it works.
Then I wanted to simplify the script by renaming my objects and tried this:
if (this.rawValue ==1) {
S[*].rawValue = 1;
}
doesn't work... T_T
syntax error? have to do a variable? scratching my head. help.
Many thanks in advance!