Expand|Select|Wrap|Line Numbers
- document.frmXRefAttachMaint_01.ProdCode1
- document.frmXRefAttachMaint_01.ProdCode2
- document.frmXRefAttachMaint_01.ProdCode3
prefix: document.frmXRefAttachMaint_01.ProdCode". Is there a way to have the program do this:
Expand|Select|Wrap|Line Numbers
- strCBFilter = strCBFilter + document.frmXRefAttachMaint_01.ProdCode1
document.frmXRefAttachMaint_01.ProdCode1 with the number changing each time through the loop.
Full Code:
Expand|Select|Wrap|Line Numbers
- for(i = 1; i < 4; i++)
- {
- var strCBFilterCode = "document.frmXRefAttachMaint_01.ProdCode" + i + ".value";
- strCBFilter = strCBFilter + strCBFilterCode
- }