mtm81
10-28-2004, 06:35 PM
Hi, I'm using ASP to pull in a recordset and populate a select box.:
my table for the recordset looks like this:
OptionId OptionName OPtionPrice
the Select box is populated as follows:
value = optionID, title = OPtionName
When the user selects an OptionName, I need to somehow, re-query the recordset (or by whatever other means you guys suggest) and find the correct price.. Then I shove that price into the textfield.
One 'hack' would be to simply have the optionprice as the value of the list boxes and push that into the txtfield on change.. but that's no good as when the form is submitted, I need that OPtionId value to do some other stuff.
I know ASP back to front, but Javascript?? I'm pretty bad.
Can anyone point me in the right direction?
Thanks
James
my table for the recordset looks like this:
OptionId OptionName OPtionPrice
the Select box is populated as follows:
value = optionID, title = OPtionName
When the user selects an OptionName, I need to somehow, re-query the recordset (or by whatever other means you guys suggest) and find the correct price.. Then I shove that price into the textfield.
One 'hack' would be to simply have the optionprice as the value of the list boxes and push that into the txtfield on change.. but that's no good as when the form is submitted, I need that OPtionId value to do some other stuff.
I know ASP back to front, but Javascript?? I'm pretty bad.
Can anyone point me in the right direction?
Thanks
James