Expand my Community achievements bar.

help with counting dropdown list values.

Avatar

Level 1

I have six drop down's with two values each.  These values are "good" and "bad".  I want to count the number of times "good" is selected.

Obviously if one of the values of "good" is changed to bad the count should be reduced.  All of the fields have different names.

1 Reply

Avatar

Level 6

The problemwith your code snippet is in the compare.  In javascript you need two "=" for comparison.  It should read:

if(DropDownList1.rawValue == "good")