Click to See Complete Forum and Search --> : help with dropdown menu and addind totals


sciguyryan
08-12-2003, 06:24 AM
hi all,


I am using a dropdown list which has the value set to the cost of the item, I use this to update a null field next to the dropdown with the price or "value" and also use it in calculating the total and sales tax. example (<option value="149.95">)

I know that if I change the option value to a string with the url inside, (<option value="http://www.netscape.com">), I can achieve the effect I am looking for . That is, I have a "dynamic" link called "view" that I would like to change based on the users selection from the dropdown. However, if I change the value to a string I loose my calculation functions!

if someone could provide a code i would be most greatfull.

Khalid Ali
08-12-2003, 10:08 AM
if I understand you correctly,
you will need to create an array that has the numerical values in the list box and their corresponding links that you want to open on selection.
Then compare the value that is being selected by user form the list box and then its corresponding link should redirect/open in new window etc.

sciguyryan
08-12-2003, 10:26 AM
hi,


i think you got it.