Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Javascript changing mulitple object with sequential number names

$
0
0

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!

 


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>