How would I go about getting a result like this?
document.OrderItems.ACDV_BillStatus[0].selected = true
The bold part is dynamic. I tried
document.OrderItems.products[pcnt]_BillStatus[0].selected = true;
This is what the function looks like
function ChangeStatus(formname)
{
productlist = formname.productlist.value;
productcount = formname.productcount.value;
productcount = productcount - 1;
products = productlist.split(",");
if (formname.OrderType.value == "ZERR")
{
for (pcnt= 0; pcnt < productcount; pcnt++)
{
document.OrderItems.products[pcnt]_BillStatus[0].selected = true;
}
}
}
I know there is a value in products[pcnt]. Just not sure I would put it together or even if I could do it this way.
AJ
Do you feel lucky?
document.OrderItems.ACDV_BillStatus[0].selected = true
The bold part is dynamic. I tried
document.OrderItems.products[pcnt]_BillStatus[0].selected = true;
This is what the function looks like
function ChangeStatus(formname)
{
productlist = formname.productlist.value;
productcount = formname.productcount.value;
productcount = productcount - 1;
products = productlist.split(",");
if (formname.OrderType.value == "ZERR")
{
for (pcnt= 0; pcnt < productcount; pcnt++)
{
document.OrderItems.products[pcnt]_BillStatus[0].selected = true;
}
}
}
I know there is a value in products[pcnt]. Just not sure I would put it together or even if I could do it this way.
AJ
Do you feel lucky?