Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

javascript help needed, plz =)

Apr 8, 2005 6:26AM PDT

I'm trying to write a script that will allow me to gather information from multiple drop down boxes, and then display the value of each selected index, however, when the below code is run I get the error 'Object doesn't suppport this property or method.' I've tried many different things to try and get it to work, but it has not yet Sad Please help me fix this code or point me in a better direction Happy thanks.

var TripNum = frmTripNum.txtTripNum.value

for (i = 0; i < TripNum; i++)
{

eval("para"+i).innerHTML=(document.eval("frm"+i).eval("sel"+i)[document.eval("frm"+i).eval("sel"+i).selectedIndex].value)
}

Discussion is locked