Hi Eric,
Here's one approach, there would be many especially if there is some sort of formula defining the min and max values. With this approach I am assuming there isn't and the drop down values are Small, Medium and Big,
var ranges
switch (DropDownList1.rawValue)
{
case "Small":
ranges = { option1 : {min:0, max:499}, option2 : {min:500, max:2500} };
break;
case "Medium": ranges = { option1 : {min:0, max:4999}, option2 : {min:5000, max:25000} };
break;
default: ranges = { option1 : {min:0, max:49999}, option2 : {min:50000, max:250000} };
break;
}
switch (true)
{
case this.rawValue >= ranges.option1.min && this.rawValue <= ranges.option1.max:
Subhead1.presence = "visible";
Subhead2.presence = "hidden";
break;
case this.rawValue >= ranges.option2.min && this.rawValue <= ranges.option2.max:
Subhead1.presence = "hidden";
Subhead2.presence = "visible";
break;
default:
Subhead1.presence = "hidden";
Subhead2.presence = "hidden";
}
Regards
Bruce