OK ive got a form with several groups of radio buttons. clicking different buttons should dynamically change a figure on the page.
so lets imagine there was a radio button labeled "i want cheese on my whopper" and when you click it it adds 20 cents to your total. (checking "i dont want cheese" removes the 20 cents of course)
this can only be done with javascript, right? the numbers that change are going to be pulled from a query, so the javascript has to manipulate coldfusion variables. thats the first place i get lost. if i have a variable #getPrices.cheese# how do i get javascript to "see" that?
i (think i) know the radio button will need to call a javascript function i.e. onclick="computePrice();"...after that i dont really have a clue becasue my javascript is weaky weak weak.
any heroes out there?
so lets imagine there was a radio button labeled "i want cheese on my whopper" and when you click it it adds 20 cents to your total. (checking "i dont want cheese" removes the 20 cents of course)
this can only be done with javascript, right? the numbers that change are going to be pulled from a query, so the javascript has to manipulate coldfusion variables. thats the first place i get lost. if i have a variable #getPrices.cheese# how do i get javascript to "see" that?
i (think i) know the radio button will need to call a javascript function i.e. onclick="computePrice();"...after that i dont really have a clue becasue my javascript is weaky weak weak.
any heroes out there?